fixes
parent
f9194fcb29
commit
76dc2a30f9
10
cmd/apply.go
10
cmd/apply.go
|
@ -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.")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue