refactor: Swapped admin command names and aliases

This commit is contained in:
PerformativeJade authored and Ellis Git committed 2026-08-06 12:18:26 +00:00
1 parent 21ea9d3ea7
commit 69b6431213
6 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
Commands for managing rooms
## `!admin rooms list-rooms`
## `!admin rooms list`
List all rooms the server knows about
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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>,
+1 -1
View File
@@ -40,7 +40,7 @@ pub enum ServerCommand {
},
/// Hot-reload the server
#[clap(alias = "reload")]
#[command(name = "reload", alias = "reload-mods")]
ReloadMods,
#[cfg(unix)]
+2 -2
View File
@@ -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