auths_cli/commands/device/
mod.rs1pub mod authorization;
2pub mod pair;
3pub mod verify_attestation;
4
5pub use authorization::{DeviceCommand, DeviceSubcommand, handle_device};
6pub use pair::{PairCommand, handle_pair};
7pub use verify_attestation::{VerifyCommand, handle_verify};
8
9use crate::commands::executable::ExecutableCommand;
10use crate::config::CliConfig;
11use anyhow::Result;
12
13impl ExecutableCommand for DeviceCommand {
14 fn execute(&self, ctx: &CliConfig) -> Result<()> {
15 handle_device(
16 self.clone(),
17 ctx.repo_path.clone(),
18 self.overrides.identity_ref.clone(),
19 self.overrides.identity_blob.clone(),
20 self.overrides.attestation_prefix.clone(),
21 self.overrides.attestation_blob.clone(),
22 ctx.passphrase_provider.clone(),
23 &ctx.http_client,
24 &ctx.env_config,
25 )
26 }
27}