working commit

This commit is contained in:
2026-06-07 18:19:15 +02:00
parent d3556d397c
commit 0506b35cd1
26 changed files with 199 additions and 1299 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ const (
)
type Util struct {
oper *operator.Logic
oper *operator.Operator
subCmd *cobra.Command
createAccountParams CreateAccountParams
listAccountsParams ListAccountsParams
@@ -28,7 +28,7 @@ type Util struct {
operID string
}
func NewUtil(oper *operator.Logic) *Util {
func NewUtil(oper *operator.Operator) *Util {
return &Util{
oper: oper,
}
@@ -86,7 +86,7 @@ func (util *Util) BuildCmds() *cobra.Command {
}
updateAccountsCmd.Flags().StringVarP(&util.updateAccountParams.Password, "newpass", "N", util.updateAccountParams.Password, "New password")
updateAccountsCmd.Flags().StringVarP(&util.updateAccountParams.Username, "newname", "M", util.updateAccountParams.Username, "New username")
updateAccountsCmd.MarkFlagsOneRequired("newpass", "newname")
updateAccountsCmd.MarkFlagsOneRequired("newpass", "newname")
subCmd.AddCommand(updateAccountsCmd)
var deleteAccountCmd = &cobra.Command{