dinopkg/crates/dinopkg-cli/src/command.rs
2024-07-09 20:46:45 +01:00

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>,
},
}