Add CLI option for uploading files + dummy hookup
I think this is the interface I want for uploading release files. There is an extra option to create the release ahead of the upload just in case it doesn't exist. One *should* create it with the create command or through the Gitea GUI so that everything can be properly written into the release info.
This commit is contained in:
13
src/main.rs
13
src/main.rs
@@ -40,6 +40,19 @@ async fn main() -> Result<(), Error> {
|
||||
};
|
||||
do_create_release(&client, &args.gitea_url, &args.repo, submission).await?;
|
||||
}
|
||||
gt_tools::cli::Commands::UploadRelease {
|
||||
tag_name,
|
||||
create,
|
||||
files
|
||||
} => {
|
||||
println!("Uploading files to a release!");
|
||||
println!("Release Tag: {tag_name}");
|
||||
println!("Creating?: {create}");
|
||||
println!("Files...");
|
||||
for file in files {
|
||||
println!("--- {file}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user