Add a command to delete assets

This commit is contained in:
Marc Plano-Lesay 2024-11-05 14:27:37 +11:00
parent af5990796e
commit ebe22cfc10
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
6 changed files with 114 additions and 0 deletions

View file

@ -20,6 +20,10 @@ pub(crate) struct Opts {
#[arg(short, long)]
pub dry_run: bool,
/// If enabled, don't ask for confirmation of destructive actions
#[arg(short, long)]
pub no_confirm: bool,
#[command(subcommand)]
#[serde(flatten)]
pub command: Commands,
@ -53,6 +57,13 @@ pub(crate) enum Commands {
#[derive(Serialize, Subcommand)]
pub(crate) enum AssetsCommands {
/// Delete all assets
#[serde(rename = "delete")]
Delete {
/// Delete only offline assets
#[arg(short, long, action)]
offline: bool,
},
/// List all assets
#[serde(rename = "list")]
List {