cli

package
v0.27.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandFileConflict

func CommandFileConflict(app, name, hint string) error

func ExitCode

func ExitCode(err error) int

func HasFileConflict

func HasFileConflict(name string) bool

func LoadEnvironment

func LoadEnvironment(explicit, filePath, workspace string) (vars.EnvironmentSet, string)

func NewFlagSet

func NewFlagSet(name string) *flag.FlagSet

func NewSubcommandFlagSet

func NewSubcommandFlagSet(app, name string, w io.Writer) *flag.FlagSet

func ParseCompareTargets

func ParseCompareTargets(raw string) ([]string, error)

func PrintFlagSetUsage

func PrintFlagSetUsage(w io.Writer, app string, fs *flag.FlagSet)

func SelectDefaultEnvironment

func SelectDefaultEnvironment(envs vars.EnvironmentSet) (string, bool)

func ValidateReservedEnvironment

func ValidateReservedEnvironment(value, flagName string) error

Types

type ExitErr

type ExitErr struct {
	Err  error
	Code int
}

func (ExitErr) Error

func (e ExitErr) Error() string

func (ExitErr) ExitCode

func (e ExitErr) ExitCode() int

func (ExitErr) Unwrap

func (e ExitErr) Unwrap() error

Jump to

Keyboard shortcuts

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