workspace

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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