Update username() to use new Exec() command

This commit is contained in:
Sam
2019-09-17 23:39:51 -04:00
parent 500a965df2
commit 97cda8c249

View File

@ -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 ""
}