1use clap::{Parser, Subcommand};
2
3#[derive(Parser)]
4#[command(name="solana-spinup", about="Scaffold a solana project", version="0.1.0")]
5pub struct Cli {
6 #[command(subcommand)]
7 pub command: Commands
8}
9
10#[derive(Subcommand)]
11pub enum Commands {
12 New {
13 #[arg(help = "Add the name of the project dir. spinup new <PROJECT_NAME>")]
14 project_name: String
15 },
16 Add {
17 #[arg(help = "Add the name of the extra rust program you need. spinup add <PROGRAM_NAME")]
18 program_name: String
19 }
20}