oxc/crates/oxc_cli/src/runner.rs

11 lines
272 B
Rust

use crate::CliRunResult;
/// A trait for exposing functionality to the CLI.
pub trait Runner: Send + Sync {
type Options;
fn new(matches: Self::Options) -> Self;
/// Executes the runner, providing some result to the CLI.
fn run(self) -> CliRunResult;
}