feat: begin designing cli

This commit is contained in:
DecDuck
2026-01-06 16:11:06 +07:00
parent aa21a779ff
commit 4e32c38948
6 changed files with 1660 additions and 49 deletions
+33
View File
@@ -0,0 +1,33 @@
use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(version, about, long_about = None)]
pub struct Cli {
#[command(subcommand)]
pub command: Commands,
/// Specify data file path
#[arg(short, long)]
pub data: Option<String>,
}
#[derive(Subcommand)]
pub enum Commands {
/// Configures a new Drop server
Configure {
/// Endpoint of the Drop server
url: String,
/// API token for non-interactive configuration.
#[arg(short, long)]
token: Option<String>
},
/// Uploads new game version to depot
Upload {
/// Path of new version
path: bool,
/// ID of game to attach to
game_id: String,
/// Version ID to attach to
version_id: String,
},
}