feat: add --force-id flag to bypass case validation in repo announce
The new flag allows users to skip the kebkab case ID check when announcing repositories. Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
@@ -48,6 +48,9 @@ pub struct AnnounceArgs {
|
||||
/// Labels to categorize the repository. Can be specified multiple times.
|
||||
#[arg(short, long)]
|
||||
label: Vec<String>,
|
||||
/// Skip kebab-case validation for the repository ID
|
||||
#[arg(long)]
|
||||
force_id: bool,
|
||||
}
|
||||
|
||||
impl CommandRunner for AnnounceArgs {
|
||||
@@ -70,6 +73,7 @@ impl CommandRunner for AnnounceArgs {
|
||||
options.relays.clone(),
|
||||
self.maintainers,
|
||||
self.label.into_iter().map(utils::str_trim).collect(),
|
||||
self.force_id,
|
||||
)?
|
||||
.pow(options.pow)
|
||||
.build(user_pubk);
|
||||
|
||||
Reference in New Issue
Block a user