master
Matthew 2020-12-18 20:26:58 -05:00
parent f9194fcb29
commit 76dc2a30f9
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,8 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"net/http" "net/http"
// "os/user" "os/user"
"strings" "strings"
"github.com/kataras/golog" "github.com/kataras/golog"
@ -23,8 +24,8 @@ type Response struct {
} }
func ApplyHard(ctx *cli.Context) error { func ApplyHard(ctx *cli.Context) error {
u, _ := user.Current()
account, err := internal.FetchAccount("matthew") account, err := internal.FetchAccount(u.Username)
if err != nil { if err != nil {
internal.Error(err, "Unable to read account information.") internal.Error(err, "Unable to read account information.")
} }
@ -65,7 +66,8 @@ func ApplyHard(ctx *cli.Context) error {
func ApplySoft(ctx *cli.Context) error { func ApplySoft(ctx *cli.Context) error {
golog.Debug("Fetching account information.") golog.Debug("Fetching account information.")
account, err := internal.FetchAccount("matthew") u, _ := user.Current()
account, err := internal.FetchAccount(u.Username)
if err != nil { if err != nil {
internal.Error(err, "Unable to read account information.") internal.Error(err, "Unable to read account information.")
} }