mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-12 19:56:48 +00:00
refactor: Swapped admin command names and aliases
This commit is contained in:
1 parent
21ea9d3ea7
commit
69b6431213
6 files changed
+8
-8
No files matched your search
@@ -4,7 +4,7 @@
|
||||
Commands for managing rooms
|
||||
|
||||
|
||||
## `!admin rooms list-rooms`
|
||||
## `!admin rooms list`
|
||||
|
||||
List all rooms the server knows about
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ List database backups
|
||||
|
||||
Send a message to the admin room
|
||||
|
||||
## `!admin server reload-mods`
|
||||
## `!admin server reload`
|
||||
|
||||
Hot-reload the server
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
Commands for managing local users
|
||||
|
||||
|
||||
## `!admin users create-user`
|
||||
## `!admin users create`
|
||||
|
||||
Create a new user
|
||||
|
||||
@@ -92,7 +92,7 @@ Disable login for a user
|
||||
|
||||
Disables login for the specified user without deactivating or locking their account. This prevents the user from obtaining new access tokens, but does not invalidate existing sessions.
|
||||
|
||||
## `!admin users list-users`
|
||||
## `!admin users list`
|
||||
|
||||
List local users in the database
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ use crate::admin_command_dispatch;
|
||||
#[derive(Debug, Subcommand)]
|
||||
pub enum RoomCommand {
|
||||
/// List all rooms the server knows about
|
||||
#[clap(alias = "list")]
|
||||
#[command(name = "list", alias = "list-rooms")]
|
||||
ListRooms {
|
||||
page: Option<usize>,
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ pub enum ServerCommand {
|
||||
},
|
||||
|
||||
/// Hot-reload the server
|
||||
#[clap(alias = "reload")]
|
||||
#[command(name = "reload", alias = "reload-mods")]
|
||||
ReloadMods,
|
||||
|
||||
#[cfg(unix)]
|
||||
|
||||
@@ -10,7 +10,7 @@ use crate::admin_command_dispatch;
|
||||
#[derive(Debug, Subcommand)]
|
||||
pub enum UserCommand {
|
||||
/// Create a new user
|
||||
#[clap(alias = "create")]
|
||||
#[command(name = "create", alias = "create-user")]
|
||||
CreateUser {
|
||||
/// Username of the new user
|
||||
username: String,
|
||||
@@ -163,7 +163,7 @@ pub enum UserCommand {
|
||||
},
|
||||
|
||||
/// List local users in the database
|
||||
#[clap(alias = "list")]
|
||||
#[command(name = "list", alias = "list-users")]
|
||||
ListUsers,
|
||||
|
||||
/// Lists all the rooms (local and remote) that the specified user is
|
||||
|
||||
Reference in new issue
Block a user