Documentation ¶
Index ¶
- Variables
- func ConvertSimpleVarsToBraces(input string) string
- func CustomExpandVariables(input string, fn func(key string) (value string, ok bool)) string
- func FailWith(message string)
- func FixHomeExpansion(path string) string
- func ForEachKnownPath(fn func(string, string))
- func ForEachPathsDPath(fn func(source string, path string))
- func ForEachScriptsDPath(fn func(originalSource, expandedSource string))
- func ForEachSourcedScript(input string, fn func(string))
- func ForEachVariableAssignment(key, input string, fn func(string))
- type CandidateSource
- type EnvSource
- type Filesystem
- type Location
- type NixCandidateSource
- type OsFilesystem
- type Output
- type PathSetIn
- type ResultRow
- type ResultsCalculator
- type ValueSource
Constants ¶
This section is empty.
Variables ¶
View Source
var AllOutputs []string = []string{ string(OutputInteractive), string(OutputTable), string(OutputJSON), string(OutputCSV), }
View Source
var Version string = "unknown"
Functions ¶
func ConvertSimpleVarsToBraces ¶ added in v0.3.0
func CustomExpandVariables ¶ added in v0.3.0
func FixHomeExpansion ¶ added in v0.3.0
func ForEachKnownPath ¶ added in v0.2.0
ForEachKnownPath iterates over expanded known paths if they're legitimate
func ForEachPathsDPath ¶ added in v0.2.0
func ForEachScriptsDPath ¶ added in v0.3.1
func ForEachScriptsDPath(fn func(originalSource, expandedSource string))
func ForEachSourcedScript ¶ added in v0.3.0
func ForEachVariableAssignment ¶ added in v0.3.0
Types ¶
type CandidateSource ¶ added in v0.2.0
func NewNixCandidateSource ¶ added in v0.2.0
func NewNixCandidateSource(fs Filesystem, key string) CandidateSource
type EnvSource ¶
type EnvSource struct {
// contains filtered or unexported fields
}
func NewEnvSource ¶
type Filesystem ¶
type NixCandidateSource ¶ added in v0.2.0
type NixCandidateSource struct {
// contains filtered or unexported fields
}
func (*NixCandidateSource) WhereSet ¶ added in v0.2.0
func (s *NixCandidateSource) WhereSet(somePath string) *PathSetIn
type OsFilesystem ¶
type OsFilesystem struct{}
func (*OsFilesystem) GetAbsolutePath ¶
func (*OsFilesystem) GetAbsolutePath(path string) string
func (*OsFilesystem) PathStatus ¶
func (f *OsFilesystem) PathStatus(path string) (bool, bool)
returns (exists, isDir)
type ResultsCalculator ¶ added in v0.2.0
type ResultsCalculator struct {
// contains filtered or unexported fields
}
func NewCustomResultsCalculator ¶ added in v0.2.0
func NewCustomResultsCalculator(fs Filesystem, source ValueSource, candidateSource CandidateSource) *ResultsCalculator
func NewResultsCalculator ¶ added in v0.2.0
func NewResultsCalculator(fs Filesystem, source ValueSource) *ResultsCalculator
func (*ResultsCalculator) CalculateResults ¶ added in v0.2.0
func (r *ResultsCalculator) CalculateResults() ([]ResultRow, error)
type ValueSource ¶
Click to show internal directories.
Click to hide internal directories.