mod filecheck;
mod lit;
mod not;
pub use self::filecheck::FileCheck;
pub use self::lit::Lit;
pub use self::not::Not;
use litcheck::diagnostics::DiagResult;
pub trait Command: clap::FromArgMatches {
fn is_help_requested(&self) -> bool;
fn run(self) -> DiagResult<std::process::ExitCode>;
}
pub fn all() -> impl IntoIterator<Item = clap::Command> {
use clap::CommandFactory;
[Lit::command(), FileCheck::command(), Not::command()]
}