mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
- Update github.com/luxfi/netrunner v1.15.3 → v1.15.4 - Update github.com/luxfi/node v1.22.77 → v1.22.80 - Remove local replace directive for netrunner - Use published package versions for reproducible builds
30 lines
808 B
Go
30 lines
808 B
Go
// Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package primarycmd
|
|
|
|
import (
|
|
"github.com/luxfi/cli/pkg/application"
|
|
"github.com/luxfi/cli/pkg/cobrautils"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var app *application.Lux
|
|
|
|
// NewCmd creates the primary command for interacting with the Primary Network.
|
|
func NewCmd(injectedApp *application.Lux) *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "primary",
|
|
Short: "Interact with the Primary Network",
|
|
Long: `The primary command suite provides a collection of tools for interacting with the
|
|
Primary Network`,
|
|
RunE: cobrautils.CommandSuiteUsage,
|
|
}
|
|
app = injectedApp
|
|
// primary addValidator
|
|
cmd.AddCommand(newAddValidatorCmd())
|
|
// primary describe
|
|
cmd.AddCommand(newDescribeCmd())
|
|
return cmd
|
|
}
|