fixes
parent
f9194fcb29
commit
76dc2a30f9
10
cmd/apply.go
10
cmd/apply.go
|
@ -6,7 +6,8 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
// "os/user"
|
||||
"os/user"
|
||||
|
||||
"strings"
|
||||
|
||||
"github.com/kataras/golog"
|
||||
|
@ -23,8 +24,8 @@ type Response struct {
|
|||
}
|
||||
|
||||
func ApplyHard(ctx *cli.Context) error {
|
||||
|
||||
account, err := internal.FetchAccount("matthew")
|
||||
u, _ := user.Current()
|
||||
account, err := internal.FetchAccount(u.Username)
|
||||
if err != nil {
|
||||
internal.Error(err, "Unable to read account information.")
|
||||
}
|
||||
|
@ -65,7 +66,8 @@ func ApplyHard(ctx *cli.Context) error {
|
|||
|
||||
func ApplySoft(ctx *cli.Context) error {
|
||||
golog.Debug("Fetching account information.")
|
||||
account, err := internal.FetchAccount("matthew")
|
||||
u, _ := user.Current()
|
||||
account, err := internal.FetchAccount(u.Username)
|
||||
if err != nil {
|
||||
internal.Error(err, "Unable to read account information.")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue