cmd

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command.

func ExecutedCmd added in v0.3.0

func ExecutedCmd() *cobra.Command

ExecutedCmd returns the command that was actually executed, or nil if execution failed before PersistentPreRun (e.g., flag/arg validation).

func RootCmd

func RootCmd() *cobra.Command

RootCmd returns the root cobra.Command, used by tooling such as man page generation.

func SetVersionInfo

func SetVersionInfo(v, commit, date string)

SetVersionInfo sets the version string shown by --version, including optional build metadata (commit hash and build date).

Types

This section is empty.

Directories

Path Synopsis
gen-man generates man pages for the sl CLI using cobra/doc.
gen-man generates man pages for the sl CLI using cobra/doc.

Jump to

Keyboard shortcuts

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