# Objective - Many of the items in the `ci` tool use `pub(crate)`, which is functionally equivalent to `pub` when the crate is not a library. - A few items are missing documentation. ## Solution - Make all `pub(crate)` items just `pub`. - `pub` is easier to type and less obscure, and there's not harm from this change. - Add / modify documentation on `CI`, `Prepare`, and `PreparedCommand`.
18 lines
612 B
Rust
18 lines
612 B
Rust
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 struct DocCommand {}
|
|
|
|
impl Prepare for DocCommand {
|
|
fn prepare<'a>(&self, sh: &'a xshell::Shell, flags: Flag) -> Vec<PreparedCommand<'a>> {
|
|
let mut commands = vec![];
|
|
commands.append(&mut DocTestCommand::default().prepare(sh, flags));
|
|
commands.append(&mut DocCheckCommand::default().prepare(sh, flags));
|
|
commands
|
|
}
|
|
}
|