working commit

This commit is contained in:
2026-03-26 21:08:25 +02:00
parent 80fdd79aff
commit 31fcdca726
6 changed files with 77 additions and 60 deletions
+4
View File
@@ -13,6 +13,10 @@ const (
defaultHostname = "localhost:1025"
)
func NewAccountUtil() *AccountUtil {
return &AccountUtil{}
}
type AccountUtil struct {
createAccountParams CreateAccountParams
updateAccountParams UpdateAccountParams
+13 -9
View File
@@ -8,6 +8,19 @@ import (
"github.com/spf13/viper"
)
type GrantUtil struct {
createGrantParams CreateGrantParams
updateGrantParams UpdateGrantParams
getGrantParams GetGrantParams
deleteGrantParams DeleteGrantParams
listGrantsParams ListGrantsParams
commonGrantParams CommonGrantParams
}
func NewGrantUtil() *GrantUtil {
return &GrantUtil{}
}
func (util *GrantUtil) MakeGrantCmds() *cobra.Command {
var subCmd = &cobra.Command{
Use: "grants",
@@ -79,15 +92,6 @@ func (util *GrantUtil) MakeGrantCmds() *cobra.Command {
return subCmd
}
type GrantUtil struct {
createGrantParams CreateGrantParams
updateGrantParams UpdateGrantParams
getGrantParams GetGrantParams
deleteGrantParams DeleteGrantParams
listGrantsParams ListGrantsParams
commonGrantParams CommonGrantParams
}
type CommonGrantParams struct {
Username string
Password string