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
@@ -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