chore: Rename --labels flag of repo announce command to --label
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
@@ -45,9 +45,9 @@ pub struct AnnounceArgs {
|
|||||||
/// Additional maintainers of the repository (besides yourself).
|
/// Additional maintainers of the repository (besides yourself).
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
maintainers: Vec<PublicKey>,
|
maintainers: Vec<PublicKey>,
|
||||||
/// Labels to categorize the repository.
|
/// Labels to categorize the repository. Can be specified multiple times.
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
labels: Vec<String>,
|
label: Vec<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CommandRunner for AnnounceArgs {
|
impl CommandRunner for AnnounceArgs {
|
||||||
@@ -67,7 +67,7 @@ impl CommandRunner for AnnounceArgs {
|
|||||||
self.clone,
|
self.clone,
|
||||||
options.relays.clone(),
|
options.relays.clone(),
|
||||||
maintainers,
|
maintainers,
|
||||||
self.labels.into_iter().map(utils::str_trim).collect(),
|
self.label.into_iter().map(utils::str_trim).collect(),
|
||||||
)?
|
)?
|
||||||
.pow(options.pow)
|
.pow(options.pow)
|
||||||
.build(user_pubk);
|
.build(user_pubk);
|
||||||
|
|||||||
Reference in New Issue
Block a user