diff --git a/cmd/apply.go b/cmd/apply.go index de23457..276c06a 100644 --- a/cmd/apply.go +++ b/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.") }