Doc fixes

This commit is contained in:
Mike Dilger 2025-03-28 09:40:47 +13:00
parent e5251e0f57
commit 2ca4b17b73
No known key found for this signature in database
GPG Key ID: 47581A78D4329BA4
2 changed files with 5 additions and 5 deletions

View File

@ -10,10 +10,10 @@
2) Users and moderators are now dynamically configured in the database. Use `chorus_cmd` to
manage them from the command line:
* Adding a user: `chorus_cmd add_user <pubkey> 0`
* Adding a moderator: `chorus_cmd add_user <pubkey> 1`
* Removing a user or moderator: `chorus_cmd rm_user <pubkey>`
* Listing users and moderators: `chorus_cmd dump_users`
* Adding a user: `chorus_cmd <chorus.toml> add_user <pubkey> 0`
* Adding a moderator: `chorus_cmd <chorus.toml> add_user <pubkey> 1`
* Removing a user or moderator: `chorus_cmd <chorus.toml> rm_user <pubkey>`
* Listing users and moderators: `chorus_cmd <chorus.toml> dump_users`
3) Remove the following from your config file as these are no longer used:

View File

@ -10,7 +10,7 @@ fn main() -> Result<(), Error> {
// Get args (config path)
let mut args = env::args();
if args.len() <= 1 {
panic!("USAGE: chorus_moderate <config_path>");
panic!("USAGE: chorus_cmd <config_path> <command> [args...]");
}
let _ = args.next(); // ignore program name