Update username() to use new Exec() command
This commit is contained in:
@ -60,8 +60,7 @@ func (k *Keybase) NewTeam(name string) Team {
|
|||||||
|
|
||||||
// username returns the username of the currently logged-in Keybase user.
|
// username returns the username of the currently logged-in Keybase user.
|
||||||
func (k *Keybase) username() string {
|
func (k *Keybase) username() string {
|
||||||
cmd := exec.Command(k.Path, "status", "-j")
|
cmdOut, err := k.Exec("status", "-j")
|
||||||
cmdOut, err := cmd.Output()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user