//! One-time labeler setup. //! //! - `cargo run --bin setup -- declare` publishes the label definitions. //! - `cargo run --bin setup -- did` publishes the labeler's identity entries. mod declare; mod did; use anyhow::{Result, bail}; use cities_labeler::config::Config; #[tokio::main] async fn main() -> Result<()> { let config = Config::from_env()?; match std::env::args().nth(1).as_deref() { Some("declare") => declare::run(&config).await, Some("did") => did::run(&config).await, _ => bail!("usage: setup "), } }