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};
11
12use crate::commands::executable::ExecutableCommand;
13use crate::config::CliConfig;
14use anyhow::Result;
15
16impl ExecutableCommand for IdCommand {
17 #[allow(clippy::disallowed_methods)]
18 fn execute(&self, ctx: &CliConfig) -> Result<()> {
19 handle_id(
20 self.clone(),
21 ctx.repo_path.clone(),
22 self.overrides.identity_ref.clone(),
23 self.overrides.identity_blob.clone(),
24 self.overrides.attestation_prefix.clone(),
25 self.overrides.attestation_blob.clone(),
26 ctx.passphrase_provider.clone(),
27 &ctx.env_config,
28 chrono::Utc::now(),
29 )
30 }
31}