mirror of
https://github.com/SkyfallWasTaken/dinopkg.git
synced 2024-11-25 23:03:49 +00:00
19 lines
360 B
Rust
19 lines
360 B
Rust
use clap::{Parser, Subcommand};
|
|
|
|
pub mod run;
|
|
|
|
#[derive(Parser)]
|
|
#[command(version, about, long_about = None)]
|
|
pub struct Cli {
|
|
#[command(subcommand)]
|
|
pub command: Command,
|
|
}
|
|
|
|
#[derive(Subcommand)]
|
|
pub enum Command {
|
|
/// Run a script in package.json
|
|
Run {
|
|
/// The name of the script to run
|
|
script_name: Option<String>,
|
|
},
|
|
}
|