feat: Exclude undocumented commands
This commit is contained in:
parent
00eeeb78de
commit
ae28fe92d2
7 changed files with 14 additions and 220 deletions
|
|
@ -6,4 +6,4 @@ Commands for checking integrity
|
||||||
|
|
||||||
## `!admin check check-all-users`
|
## `!admin check check-all-users`
|
||||||
|
|
||||||
_(no description)_
|
Uses the iterator in `src/database/key_value/users.rs` to iterator over every user in our database (remote and local). Reports total count, any errors if there were any, etc
|
||||||
|
|
|
||||||
|
|
@ -137,19 +137,3 @@ List database files
|
||||||
## `!admin debug tester`
|
## `!admin debug tester`
|
||||||
|
|
||||||
Developer test stubs
|
Developer test stubs
|
||||||
|
|
||||||
### `!admin debug tester panic`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin debug tester failure`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin debug tester tester`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin debug tester timer`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
|
||||||
|
|
@ -36,15 +36,3 @@ Deletes all the local media from a local user on our server. This will always ig
|
||||||
## `!admin media delete-all-from-server`
|
## `!admin media delete-all-from-server`
|
||||||
|
|
||||||
Deletes all remote media from the specified remote server. This will always ignore errors by default
|
Deletes all remote media from the specified remote server. This will always ignore errors by default
|
||||||
|
|
||||||
## `!admin media get-file-info`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
## `!admin media get-remote-file`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
## `!admin media get-remote-thumbnail`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
|
||||||
|
|
@ -44,10 +44,6 @@ Iterator of the most recent presence updates that happened after the event with
|
||||||
|
|
||||||
rooms/alias.rs iterators and getters
|
rooms/alias.rs iterators and getters
|
||||||
|
|
||||||
### `!admin query room-alias resolve-local-alias`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-alias local-aliases-for-room`
|
### `!admin query room-alias local-aliases-for-room`
|
||||||
|
|
||||||
Iterator of all our local room aliases for the room ID
|
Iterator of all our local room aliases for the room ID
|
||||||
|
|
@ -60,98 +56,14 @@ Iterator of all our local aliases in our database with their room IDs
|
||||||
|
|
||||||
rooms/state_cache iterators and getters
|
rooms/state_cache iterators and getters
|
||||||
|
|
||||||
### `!admin query room-state-cache server-in-room`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache room-servers`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache server-rooms`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache room-members`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache local-users-in-room`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache active-local-users-in-room`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache room-joined-count`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache room-invited-count`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache room-user-once-joined`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache room-members-invited`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache get-invite-count`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache get-left-count`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache rooms-joined`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache rooms-left`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache rooms-invited`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-state-cache invite-state`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
## `!admin query room-timeline`
|
## `!admin query room-timeline`
|
||||||
|
|
||||||
rooms/timeline iterators and getters
|
rooms/timeline iterators and getters
|
||||||
|
|
||||||
### `!admin query room-timeline pdus`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query room-timeline last`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
## `!admin query globals`
|
## `!admin query globals`
|
||||||
|
|
||||||
globals.rs iterators and getters
|
globals.rs iterators and getters
|
||||||
|
|
||||||
### `!admin query globals database-version`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query globals current-count`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query globals last-check-for-announcements-id`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query globals signing-keys-for`
|
### `!admin query globals signing-keys-for`
|
||||||
|
|
||||||
This returns an empty `Ok(BTreeMap<..>)` when there are no keys found for the server
|
This returns an empty `Ok(BTreeMap<..>)` when there are no keys found for the server
|
||||||
|
|
@ -184,94 +96,10 @@ appservice_id server_name user_id AND push_key
|
||||||
|
|
||||||
See src/service/sending/mod.rs for the definition of the `Destination` enum
|
See src/service/sending/mod.rs for the definition of the `Destination` enum
|
||||||
|
|
||||||
### `!admin query sending get-latest-edu-count`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
## `!admin query users`
|
## `!admin query users`
|
||||||
|
|
||||||
users.rs iterators and getters
|
users.rs iterators and getters
|
||||||
|
|
||||||
### `!admin query users count-users`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users iter-users`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users iter-users2`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users password-hash`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users list-devices`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users list-devices-metadata`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-device-metadata`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-devices-version`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users count-one-time-keys`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-device-keys`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-user-signing-key`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-master-key`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-to-device-events`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-latest-backup`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-latest-backup-version`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-backup-algorithm`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-all-backups`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-room-backups`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-backup-session`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query users get-shared-rooms`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
## `!admin query resolver`
|
## `!admin query resolver`
|
||||||
|
|
||||||
resolver service
|
resolver service
|
||||||
|
|
@ -296,14 +124,6 @@ Returns all the pushers for the user
|
||||||
|
|
||||||
short service
|
short service
|
||||||
|
|
||||||
### `!admin query short short-event-id`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
### `!admin query short short-room-id`
|
|
||||||
|
|
||||||
_(no description)_
|
|
||||||
|
|
||||||
## `!admin query raw`
|
## `!admin query raw`
|
||||||
|
|
||||||
raw service
|
raw service
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,6 @@ use futures::StreamExt;
|
||||||
|
|
||||||
use crate::Context;
|
use crate::Context;
|
||||||
|
|
||||||
/// Uses the iterator in `src/database/key_value/users.rs` to iterator over
|
|
||||||
/// every user in our database (remote and local). Reports total count, any
|
|
||||||
/// errors if there were any, etc
|
|
||||||
#[implement(Context, params = "<'_>")]
|
#[implement(Context, params = "<'_>")]
|
||||||
pub(super) async fn check_all_users(&self) -> Result {
|
pub(super) async fn check_all_users(&self) -> Result {
|
||||||
let timer = tokio::time::Instant::now();
|
let timer = tokio::time::Instant::now();
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,8 @@ use crate::admin_command_dispatch;
|
||||||
#[admin_command_dispatch]
|
#[admin_command_dispatch]
|
||||||
#[derive(Debug, Subcommand)]
|
#[derive(Debug, Subcommand)]
|
||||||
pub enum CheckCommand {
|
pub enum CheckCommand {
|
||||||
|
/// Uses the iterator in `src/database/key_value/users.rs` to iterator over
|
||||||
|
/// every user in our database (remote and local). Reports total count, any
|
||||||
|
/// errors if there were any, etc
|
||||||
CheckAllUsers,
|
CheckAllUsers,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,9 @@ fn flatten_subcommands(command: &Command) -> Vec<Subcommand> {
|
||||||
let description = command
|
let description = command
|
||||||
.get_long_about()
|
.get_long_about()
|
||||||
.or_else(|| command.get_about())
|
.or_else(|| command.get_about())
|
||||||
.map_or_else(|| "_(no description)_".to_owned(), ToString::to_string);
|
.map(ToString::to_string);
|
||||||
|
|
||||||
|
if let Some(description) = description {
|
||||||
subcommands.push(
|
subcommands.push(
|
||||||
Subcommand {
|
Subcommand {
|
||||||
name,
|
name,
|
||||||
|
|
@ -64,6 +65,7 @@ fn flatten_subcommands(command: &Command) -> Vec<Subcommand> {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for command in command.get_subcommands() {
|
for command in command.get_subcommands() {
|
||||||
flatten(subcommands, name_stack, command);
|
flatten(subcommands, name_stack, command);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue