command

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitSuccess = iota
	ExitError
	ExitBadConnection
	ExitInvalidInput // for txn, watch command
	ExitBadFeature   // provided a valid flag with an unsupported value
	ExitInterrupted
	ExitIO
	ExitBadArgs = 128
)

Variables

View Source
var (
	ClientVersion = "unknown"
	Goos          = "unknown"
	Goarch        = "unknown"
	GitCommit     = "$Format:%H$"          // sha1 from git, output of $(git rev-parse HEAD)
	BuildDate     = "1970-01-01T00:00:00Z" // build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ')
)

var needs to be used instead of const as ldflags is used to fill this information in the release process

View Source
var (
	IllegalEnumValue = errors.New("illegal enum value")
)
View Source
var RootCmd = &cobra.Command{
	Use:   "cco-cli",
	Short: "The cita-cloud operator command line interface.",
	Long:  `The cita-cloud operator command line interface lets you create and manage CITA-CLOUD chain.`,
}

Functions

func ExitWithError

func ExitWithError(code int, err error)

func NewAccountCommand

func NewAccountCommand() *cobra.Command

func NewAccountCreateCommand

func NewAccountCreateCommand() *cobra.Command

func NewAccountListCommand

func NewAccountListCommand() *cobra.Command

func NewAllInOneCommand

func NewAllInOneCommand() *cobra.Command

func NewAllInOneCreateCommand

func NewAllInOneCreateCommand() *cobra.Command

func NewChainCommand

func NewChainCommand() *cobra.Command

func NewChainDeleteCommand

func NewChainDeleteCommand() *cobra.Command

func NewChainDescribeCommand

func NewChainDescribeCommand() *cobra.Command

func NewChainInitCommand

func NewChainInitCommand() *cobra.Command

func NewChainListCommand

func NewChainListCommand() *cobra.Command

func NewChainOnlineCommand

func NewChainOnlineCommand() *cobra.Command

func NewNodeCommand

func NewNodeCommand() *cobra.Command

func NewNodeDeleteCommand

func NewNodeDeleteCommand() *cobra.Command

func NewNodeInitCommand

func NewNodeInitCommand() *cobra.Command

func NewNodeListCommand

func NewNodeListCommand() *cobra.Command

func NewNodeReloadConfigCommand

func NewNodeReloadConfigCommand() *cobra.Command

func NewNodeStartCommand

func NewNodeStartCommand() *cobra.Command

func NewNodeStopCommand

func NewNodeStopCommand() *cobra.Command

func NewPrinter

func NewPrinter(printerType string) printer

func NewVersionCommand

func NewVersionCommand() *cobra.Command

Types

type GlobalFlags

type GlobalFlags struct {
	Endpoint         string
	DialTimeout      time.Duration
	CommandTimeOut   time.Duration
	KeepAliveTime    time.Duration
	KeepAliveTimeout time.Duration

	OutputFormat string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL