summaryrefslogtreecommitdiff
path: root/cmd/gotosocial/admin.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-11-14 16:51:53 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-14 16:51:53 +0100
commit8c20ccd9a8e190b1c3fa3ea40037d892d2ce5a59 (patch)
tree7df31624663b22366a74b9af52f9fe2696260027 /cmd/gotosocial/admin.go
parent[docs] Use correct Friendica link in README (#1046) (diff)
downloadgotosocial-8c20ccd9a8e190b1c3fa3ea40037d892d2ce5a59.tar.xz
[chore] Remove unused `admin account suspend` action (#1047)
* [docs] clarify that admin account commands are for local accounts * [chore] remove confusing unused `admin account suspend` command
Diffstat (limited to 'cmd/gotosocial/admin.go')
-rw-r--r--cmd/gotosocial/admin.go27
1 files changed, 7 insertions, 20 deletions
diff --git a/cmd/gotosocial/admin.go b/cmd/gotosocial/admin.go
index cddc79f40..4bf71d612 100644
--- a/cmd/gotosocial/admin.go
+++ b/cmd/gotosocial/admin.go
@@ -37,13 +37,13 @@ func adminCommands() *cobra.Command {
adminAccountCmd := &cobra.Command{
Use: "account",
- Short: "admin commands related to accounts",
+ Short: "admin commands related to local (this instance) accounts",
}
config.AddAdminAccount(adminAccountCmd)
adminAccountCreateCmd := &cobra.Command{
Use: "create",
- Short: "create a new account",
+ Short: "create a new local account",
PreRunE: func(cmd *cobra.Command, args []string) error {
return preRun(preRunArgs{cmd: cmd})
},
@@ -56,7 +56,7 @@ func adminCommands() *cobra.Command {
adminAccountConfirmCmd := &cobra.Command{
Use: "confirm",
- Short: "confirm an existing account manually, thereby skipping email confirmation",
+ Short: "confirm an existing local account manually, thereby skipping email confirmation",
PreRunE: func(cmd *cobra.Command, args []string) error {
return preRun(preRunArgs{cmd: cmd})
},
@@ -69,7 +69,7 @@ func adminCommands() *cobra.Command {
adminAccountPromoteCmd := &cobra.Command{
Use: "promote",
- Short: "promote an account to admin",
+ Short: "promote a local account to admin",
PreRunE: func(cmd *cobra.Command, args []string) error {
return preRun(preRunArgs{cmd: cmd})
},
@@ -82,7 +82,7 @@ func adminCommands() *cobra.Command {
adminAccountDemoteCmd := &cobra.Command{
Use: "demote",
- Short: "demote an account from admin to normal user",
+ Short: "demote a local account from admin to normal user",
PreRunE: func(cmd *cobra.Command, args []string) error {
return preRun(preRunArgs{cmd: cmd})
},
@@ -95,7 +95,7 @@ func adminCommands() *cobra.Command {
adminAccountDisableCmd := &cobra.Command{
Use: "disable",
- Short: "prevent an account from signing in or posting etc, but don't delete anything",
+ Short: "prevent a local account from signing in or posting etc, but don't delete anything",
PreRunE: func(cmd *cobra.Command, args []string) error {
return preRun(preRunArgs{cmd: cmd})
},
@@ -106,22 +106,9 @@ func adminCommands() *cobra.Command {
config.AddAdminAccount(adminAccountDisableCmd)
adminAccountCmd.AddCommand(adminAccountDisableCmd)
- adminAccountSuspendCmd := &cobra.Command{
- Use: "suspend",
- Short: "completely remove an account and all of its posts, media, etc",
- PreRunE: func(cmd *cobra.Command, args []string) error {
- return preRun(preRunArgs{cmd: cmd})
- },
- RunE: func(cmd *cobra.Command, args []string) error {
- return run(cmd.Context(), account.Suspend)
- },
- }
- config.AddAdminAccount(adminAccountSuspendCmd)
- adminAccountCmd.AddCommand(adminAccountSuspendCmd)
-
adminAccountPasswordCmd := &cobra.Command{
Use: "password",
- Short: "set a new password for the given account",
+ Short: "set a new password for the given local account",
PreRunE: func(cmd *cobra.Command, args []string) error {
return preRun(preRunArgs{cmd: cmd})
},