cmd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set at build time via ldflags.

View Source
var VersionCmd = &cobra.Command{
	Use:     "version",
	Aliases: []string{"v"},
	Short:   "Print the CLI version",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Printf("cws %s\n", Version)
	},
}

VersionCmd is the version subcommand.

Functions

func Execute

func Execute()

Execute runs the root command.

func FormatState

func FormatState(state string) string

FormatState converts an API state string to a human-readable label.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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