diff options
| author | Christine Dodrill <me@christine.website> | 2018-10-10 08:27:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-10 08:27:34 -0700 |
| commit | 950ee8db3c9ef0bae183d851e8ff5fc3a0717304 (patch) | |
| tree | fd3700159f2d9992d1b0c47d74225d5edc2a9c20 /internal/yeet | |
| parent | 78c1bf58fe30f0660de32c05edc2d60d74214636 (diff) | |
| download | x-950ee8db3c9ef0bae183d851e8ff5fc3a0717304.tar.xz x-950ee8db3c9ef0bae183d851e8ff5fc3a0717304.zip | |
Update yeet.go
Diffstat (limited to 'internal/yeet')
| -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() { |
