Add a command to delete assets
This commit is contained in:
parent
af5990796e
commit
ebe22cfc10
6 changed files with 114 additions and 0 deletions
11
src/args.rs
11
src/args.rs
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue