diff --git a/cmd/profile.go b/cmd/profile.go index ea9b84f..ec9caf1 100644 --- a/cmd/profile.go +++ b/cmd/profile.go @@ -20,7 +20,6 @@ import ( "fmt" "net/url" "os" - "pb/pkg/config" "pb/pkg/model/credential" "pb/pkg/model/defaultprofile" diff --git a/cmd/role.go b/cmd/role.go index 3bd3b91..35c556f 100644 --- a/cmd/role.go +++ b/cmd/role.go @@ -21,11 +21,10 @@ import ( "fmt" "io" "os" + "pb/pkg/model/role" "strings" "sync" - "pb/pkg/model/role" - tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "github.com/spf13/cobra" diff --git a/cmd/user.go b/cmd/user.go index 93dc8c9..b2c486f 100644 --- a/cmd/user.go +++ b/cmd/user.go @@ -82,8 +82,8 @@ var addUser = &cobra.Command{ } var putBody io.Reader - putBodyJson, _ := json.Marshal(rolesToSetArr) - putBody = bytes.NewBuffer([]byte(putBodyJson)) + putBodyJSON, _ := json.Marshal(rolesToSetArr) + putBody = bytes.NewBuffer([]byte(putBodyJSON)) req, err := client.NewRequest("POST", "user/"+name, putBody) if err != nil { return err @@ -199,8 +199,8 @@ var SetUserRoleCmd = &cobra.Command{ } var putBody io.Reader - putBodyJson, _ := json.Marshal(rolesToSetArr) - putBody = bytes.NewBuffer([]byte(putBodyJson)) + putBodyJSON, _ := json.Marshal(rolesToSetArr) + putBody = bytes.NewBuffer([]byte(putBodyJSON)) req, err := client.NewRequest("PUT", "user/"+name+"/role", putBody) if err != nil { return err diff --git a/main.go b/main.go index 1c4b409..92a58e0 100644 --- a/main.go +++ b/main.go @@ -19,7 +19,6 @@ package main import ( "errors" "os" - "pb/cmd" "pb/pkg/config"