Signup without a code queues a pending application; registry approve issues credentials

This commit is contained in:
George Coles
2026-09-15 11:59:30 -04:00
parent 8d74b63b11
commit 3de20ed89d
6 changed files with 266 additions and 54 deletions
+8
View File
@@ -180,6 +180,11 @@ enum RegistryCommand {
},
List,
Applications,
Approve {
id: String,
#[arg(long)]
registry_url: Option<String>,
},
SetRelays {
#[arg(required = true)]
relays: Vec<String>,
@@ -356,6 +361,9 @@ async fn main() -> Result<()> {
RegistryCommand::Remove { id } => commands::registry_remove(&dir, &id)?,
RegistryCommand::List => commands::registry_list(&dir)?,
RegistryCommand::Applications => commands::registry_applications(&dir)?,
RegistryCommand::Approve { id, registry_url } => {
commands::registry_approve(&dir, &id, registry_url.as_deref())?
}
RegistryCommand::SetRelays { relays } => commands::registry_set_relays(&dir, &relays)?,
RegistryCommand::Show => commands::registry_show(&dir)?,
RegistryCommand::Serve {