cli

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the root command.

func SetVersion

func SetVersion(version, commit, date string)

SetVersion is called by main to inject build-time version info.

Types

type Scope added in v0.4.0

type Scope string

Scope controls where synced skills are placed.

const (
	ScopeProject Scope = "project"
	ScopeUser    Scope = "user"
)

type Spinner added in v0.7.0

type Spinner struct {
	// contains filtered or unexported fields
}

Spinner displays an animated braille spinner on stderr. It is a no-op when stderr is not a TTY or when JSON mode is active.

func StartSpinner added in v0.7.0

func StartSpinner(msg string) *Spinner

StartSpinner creates and starts a spinner with the given initial message. If stderr is not a terminal or JSON mode is enabled, the returned Spinner is inert (Update and Stop are safe no-ops).

func (*Spinner) Stop added in v0.7.0

func (s *Spinner) Stop()

Stop halts the spinner and clears the line.

func (*Spinner) Update added in v0.7.0

func (s *Spinner) Update(msg string)

Update changes the spinner message.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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