feat: qrlogin command
This commit is contained in:
19
sdgb-cli/src/commands.rs
Normal file
19
sdgb-cli/src/commands.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
use palc::Parser;
|
||||
use palc::Subcommand;
|
||||
|
||||
#[derive(Parser)]
|
||||
#[command(about = "SDGB api tool", long_about = env!("CARGO_PKG_DESCRIPTION"))]
|
||||
pub struct Cli {
|
||||
#[command(subcommand)]
|
||||
pub command: Commands,
|
||||
}
|
||||
|
||||
#[derive(Subcommand)]
|
||||
pub enum Commands {
|
||||
/// Login with QRCode from wechat
|
||||
QRLogin {
|
||||
/// content of the qrcode, only the last 64 characters were used
|
||||
#[arg(short, long)]
|
||||
qrcode_content: String,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user