feat: initial support for GetUserRating

This commit is contained in:
mokurin000
2025-08-01 01:15:13 +08:00
parent 0b8de2b4bc
commit 9b046036c9
12 changed files with 139 additions and 15 deletions

View File

@@ -5,6 +5,9 @@ use strum::EnumString;
#[derive(Parser)]
#[command(about = "SDGB api tool", long_about = env!("CARGO_PKG_DESCRIPTION"))]
pub struct Cli {
/// try to generate human readable output.
#[arg(short = 'M', long)]
pub machine_readable: bool,
#[command(subcommand)]
pub command: Commands,
}
@@ -37,6 +40,10 @@ pub enum Commands {
#[arg(short, long)]
user_id: u32,
},
Rating {
#[arg(short, long)]
user_id: u32,
},
// below requires login
Userdata {