feat: Logging

Also initial progress on the upload interface
This commit is contained in:
quexeky
2026-01-19 18:54:41 +11:00
parent 320d323880
commit 6e21e40648
13 changed files with 1198 additions and 72 deletions
+25 -10
View File
@@ -1,4 +1,6 @@
use clap::{Parser, Subcommand};
use std::path::PathBuf;
use clap::{Args, Parser, Subcommand, ValueEnum};
#[derive(Parser)]
#[command(version, about, long_about = None)]
@@ -19,15 +21,28 @@ pub enum Commands {
url: String,
/// API token for non-interactive configuration.
#[arg(short, long)]
token: Option<String>
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,
},
Upload(UploadInfo),
}
#[derive(Args)]
pub struct UploadInfo {
/// Sets
pub upload_style: UploadStyle,
/// Path of new version
#[arg(short, long)]
pub path: PathBuf,
/// ID of game to attach to
#[arg(short, long)]
pub game_id: String,
/// Version ID to attach to
#[arg(short, long)]
pub version_id: String,
}
#[derive(ValueEnum, Copy, Clone, Debug, PartialEq, Eq)]
pub enum UploadStyle {
S3,
Nginx,
}