diff options
| -rw-r--r-- | internal/yeet/yeet.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/yeet/yeet.go b/internal/yeet/yeet.go index 9028aef..227b6a8 100644 --- a/internal/yeet/yeet.go +++ b/internal/yeet/yeet.go @@ -50,7 +50,7 @@ func ShouldWork(ctx context.Context, env []string, dir string, cmdName string, a } /// Output returns the output of a command or an error. -func output(ctx context.Context, cmd string, args ...string) (string, error) { +func Output(ctx context.Context, cmd string, args ...string) (string, error) { c := exec.CommandContext(ctx, cmd, args...) c.Env = os.Environ() c.Stderr = os.Stderr @@ -63,7 +63,7 @@ func output(ctx context.Context, cmd string, args ...string) (string, error) { // GitTag returns the curreng git tag. func GitTag(ctx context.Context) (string, error) { - s, err := output(ctx, "git", "describe", "--tags") + s, err := Output(ctx, "git", "describe", "--tags") if err != nil { ee, ok := errors.Cause(err).(*exec.ExitError) if ok && ee.Exited() { |
