commandutil

package
v0.7.194 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandCommand

func ExpandCommand(workDir, command string) string

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

func ExpandCommandCtx(ctx context.Context, workDir, command string) string

ExpandCommandCtx is ExpandCommand with cancellation support for git queries.

func FormatElapsed

func FormatElapsed(d time.Duration) string

func NameWidth

func NameWidth(commands []config.Command) int

func SkipRemaining

func SkipRemaining(status iostream.StatusFunc, remaining []config.Command, width int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL