atproto_devtool/commands/test.rs
1//! `atproto-devtool test ...` subcommand tree.
2
3use clap::Subcommand;
4use miette::Report;
5use std::process::ExitCode;
6
7pub mod labeler;
8
9use self::labeler::LabelerCmd;
10
11#[derive(Debug, Subcommand)]
12pub enum TestCmd {
13 /// Run the labeler conformance suite against an atproto labeler.
14 Labeler(LabelerCmd),
15}
16
17impl TestCmd {
18 pub async fn run(self, no_color: bool) -> Result<ExitCode, Report> {
19 match self {
20 TestCmd::Labeler(cmd) => cmd.run(no_color).await,
21 }
22 }
23}