mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
11 lines
259 B
Rust
11 lines
259 B
Rust
use crate::CliRunResult;
|
|
|
|
/// A trait for exposing functionality to the CLI.
|
|
pub trait Runner {
|
|
type Options;
|
|
|
|
fn new(matches: Self::Options) -> Self;
|
|
|
|
/// Executes the runner, providing some result to the CLI.
|
|
fn run(self) -> CliRunResult;
|
|
}
|