Documentation ¶
Index ¶
- Constants
- Variables
- func ExitWithError(code int, err error)
- func NewAccountCommand() *cobra.Command
- func NewAccountCreateCommand() *cobra.Command
- func NewAccountListCommand() *cobra.Command
- func NewAllInOneCommand() *cobra.Command
- func NewAllInOneCreateCommand() *cobra.Command
- func NewChainCommand() *cobra.Command
- func NewChainDeleteCommand() *cobra.Command
- func NewChainDescribeCommand() *cobra.Command
- func NewChainInitCommand() *cobra.Command
- func NewChainListCommand() *cobra.Command
- func NewChainOnlineCommand() *cobra.Command
- func NewNodeCommand() *cobra.Command
- func NewNodeDeleteCommand() *cobra.Command
- func NewNodeInitCommand() *cobra.Command
- func NewNodeListCommand() *cobra.Command
- func NewNodeReloadConfigCommand() *cobra.Command
- func NewNodeStartCommand() *cobra.Command
- func NewNodeStopCommand() *cobra.Command
- func NewPrinter(printerType string) printer
- func NewVersionCommand() *cobra.Command
- type GlobalFlags
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 NewAccountCommand ¶
func NewAccountCreateCommand ¶
func NewAccountListCommand ¶
func NewAllInOneCommand ¶
func NewChainCommand ¶
func NewChainDeleteCommand ¶
func NewChainDescribeCommand ¶
func NewChainInitCommand ¶
func NewChainListCommand ¶
func NewChainOnlineCommand ¶
func NewNodeCommand ¶
func NewNodeDeleteCommand ¶
func NewNodeInitCommand ¶
func NewNodeListCommand ¶
func NewNodeStartCommand ¶
func NewNodeStopCommand ¶
func NewPrinter ¶
func NewPrinter(printerType string) printer
func NewVersionCommand ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.