cmd

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package cmd provides the CLI commands for the workspace tool.

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigManager    *config.ConfigManager
	WorkspaceManager *workspace.Manager
	OutputPathOnly   bool
)
View Source
var RootCmd = &cobra.Command{
	Use:   "workspace",
	Short: "Workspace manager for multiple project development",
	Long:  `A CLI tool to create and manage isolated workspaces with multiple git repositories.`,
	Run: func(_ *cobra.Command, _ []string) {
		runInteractiveWorkspaceSelector()
	},
}

Functions

func InitializeConfig

func InitializeConfig() error

InitializeConfig loads configuration and creates the workspace manager.

func SetVersion

func SetVersion(v, c, d string)

SetVersion sets the version information for the CLI.

func WorkspaceCompletionFunc

func WorkspaceCompletionFunc(_ *cobra.Command, _ []string, toComplete string) ([]string, cobra.ShellCompDirective)

WorkspaceCompletionFunc provides shell completion for workspace names.

Types

This section is empty.

Directories

Path Synopsis
Package branch provides the workspace branch management commands.
Package branch provides the workspace branch management commands.
Package config provides the workspace config command and subcommands.
Package config provides the workspace config command and subcommands.
Package create provides the workspace create command.
Package create provides the workspace create command.
Package delete provides the workspace delete command.
Package delete provides the workspace delete command.
Package list provides the workspace list command.
Package list provides the workspace list command.
Package switchcmd provides the workspace switch command.
Package switchcmd provides the workspace switch command.

Jump to

Keyboard shortcuts

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