workspace

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WorkspaceCmd = &cobra.Command{
	Use:     "workspace",
	Aliases: []string{"ws"},
	Short:   "Commands to manage workspaces",
	Long:    "View, list, and switch between workspaces associated with your account.",
	Run: func(cmd *cobra.Command, args []string) {
		cfg, err := config.LoadConfig()
		if err != nil {
			utils.CliErrorWithExit("Not logged in. Run 'alpacon login' first.")
		}

		fmt.Printf("Current workspace: %s\n", cfg.WorkspaceName)
		fmt.Printf("URL: %s\n", cfg.WorkspaceURL)

		if cfg.IsMultiWorkspaceMode() {
			fmt.Printf("Base domain: %s\n", cfg.BaseDomain)
			fmt.Println("\nUse 'alpacon workspace ls' to list all workspaces.")
			fmt.Println("Use '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