Browse Source

Update username() to use new Exec() command

main
Sam 5 years ago
parent
commit
97cda8c249
  1. 3
      keybase.go

3
keybase.go

@ -60,8 +60,7 @@ func (k *Keybase) NewTeam(name string) Team { @@ -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 ""
}

Loading…
Cancel
Save