Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerCmd = &cobra.Command{ Use: "server", Aliases: []string{"servers"}, Short: "Manage registered servers", RunE: func(cmd *cobra.Command, args []string) error { err := cmd.Help() if err != nil { return err } return errors.New("a subcommand is required. Use 'alpacon server list', 'alpacon server create', 'alpacon server describe', 'alpacon server update', 'alpacon server delete', 'alpacon server refresh', or 'alpacon server token'. Run 'alpacon server --help' for more information") }, }
Functions ¶
func AddDisruptiveActionFlags ¶ added in v1.14.0
AddDisruptiveActionFlags registers the shared -y/--force flags.
func RunDisruptiveServerAction ¶ added in v1.14.0
func RunDisruptiveServerAction(serverName, action, confirmMsg, successMsg, failMsg string, yes, force bool)
RunDisruptiveServerAction runs the action with confirmation, MFA retry, and busy-guard handling.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.