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