Documentation
¶
Index ¶
- func Args(v any) []string
- func IsSet(short, long string, args []string) bool
- func LoadWithDefaultFilePaths(options TileDirectory, args []string, stat StatFunc) ([]string, error)
- type FetchBakeOptions
- type FileSystem
- type HomeDirFunc
- type Standard
- func (options Standard) KilnfileLockPath() string
- func (options Standard) KilnfilePathPrefix() string
- func (options *Standard) LoadKilnfiles(fsOverride billy.Basic, variablesServiceOverride VariablesService) (_ cargo.Kilnfile, _ cargo.KilnfileLock, err error)
- func (options Standard) SaveKilnfileLock(fsOverride billy.Basic, kilnfileLock cargo.KilnfileLock) error
- func (options Standard) TileDirectory() string
- type StatFunc
- type TileDirectory
- type VariablesService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSet ¶
IsSet can be used to check if a flag is set in a set of arguments. Both "long" and "short" flag names must be passed.
func LoadWithDefaultFilePaths ¶ added in v0.87.0
func LoadWithDefaultFilePaths(options TileDirectory, args []string, stat StatFunc) ([]string, error)
LoadWithDefaultFilePaths only sets default values if the flag is not set this permits explicitly setting "zero values" for in arguments without them being overwritten.
Types ¶
type FetchBakeOptions ¶ added in v0.78.0
type FileSystem ¶ added in v0.78.0
type FileSystem interface { billy.Basic billy.Dir }
type HomeDirFunc ¶ added in v0.78.0
type Standard ¶
type Standard struct { Kilnfile string `short:"kf" long:"kilnfile" default:"Kilnfile" description:"path to Kilnfile"` VariableFiles []string `` /* 137-byte string literal not displayed */ Variables []string `` /* 130-byte string literal not displayed */ }
func (Standard) KilnfileLockPath ¶
func (Standard) KilnfilePathPrefix ¶
func (*Standard) LoadKilnfiles ¶
func (options *Standard) LoadKilnfiles(fsOverride billy.Basic, variablesServiceOverride VariablesService) (_ cargo.Kilnfile, _ cargo.KilnfileLock, err error)
LoadKilnfiles parses and interpolates the Kilnfile and parsed the Kilnfile.lock. The function parameters are for overriding default services. These parameters are helpful for testing, in most cases nil can be passed for both.
func (Standard) SaveKilnfileLock ¶
func (options Standard) SaveKilnfileLock(fsOverride billy.Basic, kilnfileLock cargo.KilnfileLock) error
func (Standard) TileDirectory ¶ added in v0.87.0
type TileDirectory ¶ added in v0.87.0
type TileDirectory interface {
TileDirectory() string
}
Click to show internal directories.
Click to hide internal directories.