We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--message
1 parent af63782 commit b3633b9Copy full SHA for b3633b9
src/bin/crates-admin/delete_crate.rs
@@ -33,6 +33,10 @@ pub struct Opts {
33
/// Your GitHub username.
34
#[arg(long)]
35
deleted_by: String,
36
+
37
+ /// An optional message explaining why the crate was deleted.
38
+ #[arg(long)]
39
+ message: Option<String>,
40
}
41
42
pub async fn run(opts: Opts) -> anyhow::Result<()> {
@@ -80,6 +84,7 @@ pub async fn run(opts: Opts) -> anyhow::Result<()> {
80
84
.created_at(&created_at)
81
85
.deleted_at(&now)
82
86
.deleted_by(deleted_by.id)
87
+ .maybe_message(opts.message.as_deref())
83
88
.available_at(&now)
89
.build();
90
0 commit comments