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 {
#[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<String>,
},

View File

@@ -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}");