cmd

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Goos = runtime.GOOS

Goos returns the operating system, can be mocked for testing

Functions

func Execute

func Execute() error

Execute is the main entry point for the Windsor CLI application. It executes the root command with the provided context or a new background context.

Types

type Shims added in v0.5.7

type Shims struct {
	Exit        func(int)
	UserHomeDir func() (string, error)
	Stat        func(string) (os.FileInfo, error)
	RemoveAll   func(string) error
	Getwd       func() (string, error)
	Setenv      func(string, string) error
	Command     func(string, ...string) *exec.Cmd
	Getenv      func(string) string
	ReadFile    func(string) ([]byte, error)
}

Shims provides mockable wrappers around system and runtime functions

func NewShims added in v0.5.7

func NewShims() *Shims

NewShims creates a new Shims instance with default implementations

func (*Shims) Goos added in v0.5.7

func (s *Shims) Goos() string

Goos returns the operating system name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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