use crate::commands::{DocCheckCommand, DocTestCommand}; use crate::{Flag, Prepare, PreparedCommand}; use argh::FromArgs; /// Alias for running the `doc-test` and `doc-check` subcommands. #[derive(FromArgs, Default)] #[argh(subcommand, name = "doc")] pub(crate) struct DocCommand {} impl Prepare for DocCommand { fn prepare<'a>(&self, sh: &'a xshell::Shell, flags: Flag) -> Vec> { let mut commands = vec![]; commands.append(&mut DocTestCommand::default().prepare(sh, flags)); commands.append(&mut DocCheckCommand::default().prepare(sh, flags)); commands } }