Remove user delete (too many possible side effects, postponed until later)

This commit is contained in:
kolaente 2020-08-13 16:16:44 +02:00
parent ca6df2095e
commit 4de436624d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 12 deletions

View File

@ -53,7 +53,7 @@ func init() {
userUpdateCmd.Flags().StringVarP(&userFlagEmail, "email", "e", "", "The new email address of the user.")
userUpdateCmd.Flags().StringVarP(&userFlagAvatar, "avatar-provider", "a", "", "The new avatar provider of the new user.")
userCmd.AddCommand(userListCmd, userCreateCmd, userDeleteCmd, userUpdateCmd, userResetPasswordCmd, userChangeEnabledCmd)
userCmd.AddCommand(userListCmd, userCreateCmd, userUpdateCmd, userResetPasswordCmd, userChangeEnabledCmd)
rootCmd.AddCommand(userCmd)
}
@ -175,17 +175,6 @@ var userUpdateCmd = &cobra.Command{
},
}
var userDeleteCmd = &cobra.Command{
Use: "delete",
Short: "Delete a user.",
PreRun: func(cmd *cobra.Command, args []string) {
initialize.FullInit()
},
Run: func(cmd *cobra.Command, args []string) {
},
}
var userResetPasswordCmd = &cobra.Command{
Use: "reset-password",
Short: "Reset a users password, either through mailing them a reset link or directly.",