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:
@@ -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>,
|
||||
},
|
||||
|
||||
@@ -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}");
|
||||
|
||||
Reference in New Issue
Block a user