Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WorkspaceCmd = &cobra.Command{ Use: "workspace", Aliases: []string{"ws"}, Short: "View, list, and switch workspaces", Long: "View the current workspace, list available workspaces, and switch between them.", Run: func(cmd *cobra.Command, args []string) { cfg, err := config.LoadConfig() if err != nil { utils.CliErrorWithExit("Not logged in. Run 'alpacon login' first.") } utils.CliInfo("Current workspace: %s (%s)", cfg.WorkspaceName, cfg.WorkspaceURL) if cfg.IsMultiWorkspaceMode() { utils.CliInfo("Base domain: %s", cfg.BaseDomain) utils.CliInfo("Run 'alpacon workspace ls' to list all workspaces") utils.CliInfo("Run 'alpacon workspace switch <name>' to switch workspaces") } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.