aboutsummaryrefslogtreecommitdiff
path: root/internal/yeet
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2018-10-10 08:27:34 -0700
committerGitHub <noreply@github.com>2018-10-10 08:27:34 -0700
commit950ee8db3c9ef0bae183d851e8ff5fc3a0717304 (patch)
treefd3700159f2d9992d1b0c47d74225d5edc2a9c20 /internal/yeet
parent78c1bf58fe30f0660de32c05edc2d60d74214636 (diff)
downloadx-950ee8db3c9ef0bae183d851e8ff5fc3a0717304.tar.xz
x-950ee8db3c9ef0bae183d851e8ff5fc3a0717304.zip
Update yeet.go
Diffstat (limited to 'internal/yeet')
-rw-r--r--internal/yeet/yeet.go4
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() {