From 340b37cf05cf7279d2ea96f76f58f7295f27774d Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sun, 1 Jun 2025 20:44:56 -0500 Subject: [PATCH] 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. --- src/cli.rs | 5 +++-- src/main.rs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 98d5b61..ce281da 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -30,8 +30,9 @@ pub enum Commands { UploadRelease { #[arg()] tag_name: String, - #[arg(short, long)] - create: bool, + // TODO: implement create-and-upload as a single command invocation + // #[arg(short, long)] + // create: bool, #[arg()] files: Vec, }, diff --git a/src/main.rs b/src/main.rs index 9e3a21e..6a9762e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,12 +59,12 @@ async fn main() -> Result<(), gt_tools::Error> { } gt_tools::cli::Commands::UploadRelease { tag_name, - create, + // create, files, } => { println!("Uploading files to a release!"); println!("Release Tag: {tag_name}"); - println!("Creating?: {create}"); + // println!("Creating?: {create}"); println!("Files..."); for file in &files { println!("--- {file}");