Documentation ¶
Index ¶
- func BuildAndRun(commands []CommandAugmentationInput, augmenter []FlagAugmentationInput, ...)
- func BuildContext(augmenter []FlagAugmentationInput, args []string) map[int]AugmentationResult
- func MakeCommand(args []string, context map[int]AugmentationResult) []string
- func OneOffCommand(executable string, cmd []string)
- func RunForValue(executable string, args []string) string
- type AugmentationContext
- type AugmentationResult
- type CommandAugmentationInput
- type FlagAugmentationInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAndRun ¶
func BuildAndRun(commands []CommandAugmentationInput, augmenter []FlagAugmentationInput, args []string)
func BuildContext ¶
func BuildContext(augmenter []FlagAugmentationInput, args []string) map[int]AugmentationResult
func MakeCommand ¶
func MakeCommand(args []string, context map[int]AugmentationResult) []string
func OneOffCommand ¶
func RunForValue ¶
Types ¶
type AugmentationContext ¶
type AugmentationContext struct {
// contains filtered or unexported fields
}
type AugmentationResult ¶
type AugmentationResult struct { Input FlagAugmentationInput //Stripped []string Tombstone bool Start int End int Value string }
type FlagAugmentationInput ¶
type FlagAugmentationInput struct { Name string Erase bool Append func(match AugmentationResult) string Replace func(match AugmentationResult) (string, string) After func(match AugmentationResult) }
Click to show internal directories.
Click to hide internal directories.