cmd

package
v0.5.7-RC1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: MPL-2.0 Imports: 12 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(controllers ...controller.Controller) error

The Execute function is the main entry point for the Windsor CLI application. It provides initialization of core dependencies and command execution, The Execute function serves as the bootstrap mechanism for the CLI, establishing the dependency injection container and controller 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
}

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