pub mod read;
#[derive(clap::Subcommand)]
pub enum Command {
Read {
#[command(subcommand)]
command: read::Command,
},
}
pub type Request = read::Request;
pub type ResponseItem = read::ResponseItem;
impl TryFrom<Command> for Request {
type Error = crate::cli::command::FromArgsError;
fn try_from(command: Command) -> Result<Self, Self::Error> {
match command {
Command::Read { command } => read::Request::try_from(command),
}
}
}
#[cfg(feature = "cli-executor")]
pub use read::{execute, execute_transform};