Simplified admin commands (list-users, list-rooms, reload-mods) #2033

Open
PerformativeJade wants to merge 2 commits from PerformativeJade/continuwuity:change_admin_commands into main
Contributor

I swapped the commands names and aliases.

!admin users list-users -> !admin users list
!admin rooms list-rooms -> !admin rooms list
!admin server reload-mods -> !admin server reload

You can still use the old names, which are now aliases. I didn't change the name of the functions (e.g., list_users). The auto-generated docs use the simplified names.

Pull request checklist:

  • This pull request targets the main branch, and the branch is named something other than
    main.
  • I have written an appropriate pull request title and my description is clear.
  • I understand I am responsible for the contents of this pull request.
  • I have followed the contributing guidelines:
I swapped the commands names and aliases. `!admin users list-users` -> `!admin users list` `!admin rooms list-rooms` -> `!admin rooms list` `!admin server reload-mods` -> `!admin server reload` You can still use the old names, which are now aliases. I didn't change the name of the functions (e.g., list_users). The auto-generated docs use the simplified names. **Pull request checklist:** <!-- You need to complete these before your PR can be considered. If you aren't sure about some, feel free to ask for clarification in #dev:continuwuity.org. --> - [x] This pull request targets the `main` branch, and the branch is named something other than `main`. - [x] I have written an appropriate pull request title and my description is clear. - [x] I understand I am responsible for the contents of this pull request. - I have followed the [contributing guidelines][c1]: - [x] My contribution follows the [code style][c2], if applicable. - [x] I ran [pre-commit checks][c1pc] before opening/drafting this pull request. - [x] I have [tested my contribution][c1t] (or proof-read it for documentation-only changes) myself, if applicable. This includes ensuring code compiles. - [x] My commit messages follow the [commit message format][c1cm] and are descriptive. [c1]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md [c2]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/docs/development/code_style.mdx [c1pc]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md#pre-commit-checks [c1t]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md#running-tests-locally [c1cm]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md#commit-messages
refactor: Swapped admin command names and aliases
Some checks failed
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 3s
Checks / Changelog / Check changelog is added (pull_request_target) Failing after 6s
Documentation / Build and Deploy Documentation (pull_request) Has been cancelled
Checks / Prek / Pre-commit & Formatting (pull_request) Has been cancelled
Checks / Prek / Check changed files (pull_request) Has been cancelled
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been cancelled
d69fa92029
chore: Add changelog line
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Check changed files (pull_request) Successful in 5s
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 6s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m3s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 9m46s
110a10bd16
Author
Contributor

If these changes get approved, there is a few more I want to do.

E.g., aliasing !admin rooms to !admin room

If these changes get approved, there is a few more I want to do. E.g., aliasing `!admin rooms` to `!admin room`
Owner

This seems like a good idea to me, do you want to add more commands to this PR or do you want to merge this and follow up with another?

This seems like a good idea to me, do you want to add more commands to this PR or do you want to merge this and follow up with another?
ginger added this to the 26.7.0 milestone 2026-07-27 18:46:30 +00:00
ginger modified the milestone from 26.7.0 to 26.8.0 2026-07-27 19:31:34 +00:00
Author
Contributor

@nex I don't have the time right now to add more, so I think I'll follow up with another PR later.

@nex I don't have the time right now to add more, so I think I'll follow up with another PR later.
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Check changed files (pull_request) Successful in 5s
Required
Details
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 6s
Required
Details
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m3s
Required
Details
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 9m46s
Required
Details
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u change_admin_commands:PerformativeJade-change_admin_commands
git switch PerformativeJade-change_admin_commands
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity!2033
No description provided.