From 97cda8c249718232b13f1aeeca09d8e896aeec79 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 17 Sep 2019 23:39:51 -0400 Subject: [PATCH] Update username() to use new Exec() command --- keybase.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/keybase.go b/keybase.go index 11b36bc..f5d4f6c 100644 --- a/keybase.go +++ b/keybase.go @@ -60,8 +60,7 @@ func (k *Keybase) NewTeam(name string) Team { // username returns the username of the currently logged-in Keybase user. func (k *Keybase) username() string { - cmd := exec.Command(k.Path, "status", "-j") - cmdOut, err := cmd.Output() + cmdOut, err := k.Exec("status", "-j") if err != nil { return "" }