Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdCreateAccountLabel = &cobra.Command{ Use: "accountlabel [accountID] [key] [value]", Aliases: utils.Aliases["accountlabel"], Short: "Assigns a Label to an Account", Long: "Assigns a Label to an Account", RunE: runCreateAccountLabel, Args: cobra.ExactArgs(3), PreRunE: func(cmd *cobra.Command, args []string) error { accountID := args[0] connection, err := ocm.NewConnection().Build() if err != nil { return fmt.Errorf("failed to create OCM connection: %v", err) } err = account.ValidateAccount(accountID, connection) if err != nil { return fmt.Errorf("%v", err) } return nil }, }
CmdCreateAccountLabel represents the create account label command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.