Skip to main content

auths_cli/commands/id/
mod.rs

1pub mod claim;
2pub mod identity;
3pub mod migrate;
4pub mod register;
5
6pub use identity::{IdCommand, IdSubcommand, LayoutPreset, handle_id};
7pub use migrate::{MigrateCommand, handle_migrate};
8pub use register::DEFAULT_REGISTRY_URL;
9
10use crate::commands::executable::ExecutableCommand;
11use crate::config::CliConfig;
12use anyhow::Result;
13
14impl ExecutableCommand for IdCommand {
15    fn execute(&self, ctx: &CliConfig) -> Result<()> {
16        handle_id(
17            self.clone(),
18            ctx.repo_path.clone(),
19            self.overrides.identity_ref.clone(),
20            self.overrides.identity_blob.clone(),
21            self.overrides.attestation_prefix.clone(),
22            self.overrides.attestation_blob.clone(),
23            ctx.passphrase_provider.clone(),
24            &ctx.http_client,
25            &ctx.env_config,
26        )
27    }
28}