Documentation
¶
Index ¶
- func ExpandCommand(workDir, command string) string
- func ExpandCommandCtx(ctx context.Context, workDir, command string) string
- func FormatElapsed(d time.Duration) string
- func NameWidth(commands []config.Command) int
- func SkipRemaining(status iostream.StatusFunc, remaining []config.Command, width int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandCommand ¶
ExpandCommand replaces template variables in command before execution. {{CHANGED_PACKAGES}} expands to the space-separated list of Go package paths whose source files appear in `git diff HEAD`. Expands to "./..." when no .go files changed.
func ExpandCommandCtx ¶ added in v0.7.189
ExpandCommandCtx is ExpandCommand with cancellation support for git queries.
func FormatElapsed ¶
func SkipRemaining ¶
func SkipRemaining(status iostream.StatusFunc, remaining []config.Command, width int)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.