package
0.15.1
Repository: https://github.com/cisco-open/go-lanai.git
Documentation: pkg.go.dev

# Functions

And concat given matchers with AND operator.
Any returns a matcher that matches everything.
No description provided by the author
BindJsonFile find, read and bind JSON file, returns absolute path of loaded file.
BindYaml read from given io.Reader and parse as YAML.
BindYamlFile find, read and bind YAML file, returns absolute path of loaded file.
No description provided by the author
No description provided by the author
No description provided by the author
DropInvalidReplace go through the go.mod file and find replace directives that point to a non-existing local directory.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FindGitRepoRoot returns parent folder that containing `.git`.
No description provided by the author
No description provided by the author
GenerateFileWithOption generate file using given FS and template name.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LocalFlags is similar to PersistentFlags.
LookupFile search and open file for read, relative to GlobalArgs.WorkingDir or any additional lookup directories.
LookupFiles search files using provided pattern under given lookup directories relative to GlobalArgs.WorkingDir.
MatchPathPattern given string with path pattern The prefix syntax is: prefix: { term } term: '*' matches any sequence of non-path-separators '**' matches any sequence of characters, including path separators.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
None returns a matcher that matches nothing.
Not returns a negated matcher.
OpenFile open file relative to GlobalArgs.WorkingDir.
Or concat given matchers with OR operator.
No description provided by the author
No description provided by the author
PersistentFlags takes Struct or *Struct value and register its fields using "flag" tag with cmd.PersistentFlags it panic if given value is not a struct Tag syntax: `flag:"<name>[,<short_name>][,required]" desc:"<description for help cmd>"`.
No description provided by the author
No description provided by the author
RestoreInvalidReplace works together with DropInvalidReplace.
RunShellCommands runs a shell command, returns exit status and an error.
SetReplace Set given replaces in go.mod.
ShellCmd add shell commends.
ShellDir set working dir of to-be-executed commands.
ShellEnv set additional environment variable in format of "key=value".
ShellShowCmd toggle display command in log.
ShellStdErr toggle display command in log.
ShellStdIn toggle display command in log.
ShellStdOut toggle display command in log.
ShellUseOutputDir set working dir of to-be-executed commands to GlobalArgs.OutputDir.
ShellUseTmpDir set working dir of to-be-executed commands to GlobalArgs.TmpDir.
ShellUseWorkingDir set working dir of to-be-executed commands to GlobalArgs.WorkingDir.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
ShCmdLogDisabled Disable shell command logging.

# Structs

Base64Value implements pflag.Value and pflag.SliceValue.
GenericMatcher implements ChainableMatcher Implementing structs could directly use or embed this struct for convenience.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NegateMatcher apply ! operator to embedded Matcher.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
StringMatcher is a typed ChainableMatcher that accept String.

# Type aliases

AndMatcher chain a list of matchers with AND operator.
No description provided by the author
No description provided by the author
NoopMatcher matches stuff literally.
OrMatcher chain a list of matchers with OR operator.
No description provided by the author
ShCmdOptions is the options for the RunShellCommands func.