use vta_sdk::prelude::*;
pub async fn run(
client: &VtaClient,
command: crate::cli::DidMgmtAgentNameCommands,
) -> Result<(), Box<dyn std::error::Error>> {
use crate::cli::DidMgmtAgentNameCommands as C;
match command {
C::Set { did, name } => {
vta_cli_common::commands::agent_names::cmd_agent_name_set(client, &did, &name).await
}
C::Remove { did, name } => {
vta_cli_common::commands::agent_names::cmd_agent_name_remove(client, &did, &name).await
}
C::Disable { did, name } => {
vta_cli_common::commands::agent_names::cmd_agent_name_disable(client, &did, &name).await
}
C::Enable { did, name } => {
vta_cli_common::commands::agent_names::cmd_agent_name_enable(client, &did, &name).await
}
C::List { did } => {
vta_cli_common::commands::agent_names::cmd_agent_name_list(client, &did).await
}
C::Check { did, name } => {
vta_cli_common::commands::agent_names::cmd_agent_name_check(client, &did, &name).await
}
}
}