working commit
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user