You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
436 B
Rust
23 lines
436 B
Rust
use std::path::PathBuf;
|
|
|
|
use clap::{Parser, Subcommand};
|
|
|
|
#[derive(Clone, Debug, Parser)]
|
|
#[clap(infer_subcommands = true)]
|
|
pub struct Args {
|
|
#[command(subcommand)]
|
|
pub command: Command,
|
|
|
|
#[clap(long, short, default_value = ".")]
|
|
pub directory: PathBuf,
|
|
}
|
|
|
|
#[derive(Clone, Debug, Subcommand)]
|
|
pub enum Command {
|
|
/// Builds the project
|
|
Build(BuildArgs),
|
|
}
|
|
|
|
#[derive(Clone, Debug, Parser)]
|
|
pub struct BuildArgs {}
|