2023-03-27 15:53:41 +00:00
|
|
|
use std::path::PathBuf;
|
|
|
|
|
|
|
|
use clap::{Args, Parser, Subcommand};
|
|
|
|
|
|
|
|
#[derive(Parser)]
|
|
|
|
pub(crate) struct Cli {
|
|
|
|
#[arg(short, long, value_name = "FILE")]
|
|
|
|
pub config: Option<PathBuf>,
|
|
|
|
|
|
|
|
#[command(subcommand)]
|
|
|
|
pub command: Option<Commands>,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Subcommand)]
|
|
|
|
pub(crate) enum Commands {
|
|
|
|
|
|
|
|
#[command(subcommand)]
|
|
|
|
Planning(Planning)
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Subcommand)]
|
|
|
|
pub(crate) enum Planning {
|
|
|
|
I2work(Issue2Work)
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Args, Debug)]
|
|
|
|
pub(crate) struct Issue2Work {
|
2024-01-08 12:26:09 +00:00
|
|
|
pub issue_url: String,
|
|
|
|
pub project_id: String,
|
2023-03-27 15:53:41 +00:00
|
|
|
}
|