auths_cli/commands/id/
mod.rs1pub mod agent;
2pub mod bind_idp;
3pub mod claim;
4pub mod identity;
5pub mod migrate;
6pub mod register;
7
8pub use agent::{AgentCommand, handle_agent};
9pub use identity::{IdCommand, IdSubcommand, LayoutPreset, handle_id};
10pub use migrate::{MigrateCommand, handle_migrate};
11pub use register::DEFAULT_REGISTRY_URL;
12
13use crate::commands::executable::ExecutableCommand;
14use crate::config::CliConfig;
15use anyhow::Result;
16
17impl ExecutableCommand for IdCommand {
18 #[allow(clippy::disallowed_methods)]
19 fn execute(&self, ctx: &CliConfig) -> Result<()> {
20 handle_id(
21 self.clone(),
22 ctx.repo_path.clone(),
23 self.overrides.identity_ref.clone(),
24 self.overrides.identity_blob.clone(),
25 self.overrides.attestation_prefix.clone(),
26 self.overrides.attestation_blob.clone(),
27 ctx.passphrase_provider.clone(),
28 &ctx.env_config,
29 chrono::Utc::now(),
30 )
31 }
32}