Disable the unimplemented "create" arg for uploads

I never got around to implementing the create-and-upload behavior for
the file attachment command. I'll do it later, but for now I'm disabling
the code to quiet down the compiler warnings.
This commit is contained in:
2025-06-01 20:44:56 -05:00
parent 0a4de1cb92
commit 340b37cf05
2 changed files with 5 additions and 4 deletions

View File

@@ -30,8 +30,9 @@ pub enum Commands {
UploadRelease { UploadRelease {
#[arg()] #[arg()]
tag_name: String, tag_name: String,
#[arg(short, long)] // TODO: implement create-and-upload as a single command invocation
create: bool, // #[arg(short, long)]
// create: bool,
#[arg()] #[arg()]
files: Vec<String>, files: Vec<String>,
}, },

View File

@@ -59,12 +59,12 @@ async fn main() -> Result<(), gt_tools::Error> {
} }
gt_tools::cli::Commands::UploadRelease { gt_tools::cli::Commands::UploadRelease {
tag_name, tag_name,
create, // create,
files, files,
} => { } => {
println!("Uploading files to a release!"); println!("Uploading files to a release!");
println!("Release Tag: {tag_name}"); println!("Release Tag: {tag_name}");
println!("Creating?: {create}"); // println!("Creating?: {create}");
println!("Files..."); println!("Files...");
for file in &files { for file in &files {
println!("--- {file}"); println!("--- {file}");