gh_gpt/cli/commands.rs
1//! Defines the CLI commands.
2
3// Imports
4use clap::{Parser, Subcommand};
5
6/// Main CLI struct
7#[derive(Parser, Debug)]
8#[command(author, version, about, long_about = None)]
9pub struct Cli {
10 /// The subcommand to run.
11 #[command(subcommand)]
12 pub command: Option<Commands>,
13}
14
15/// Subcommands
16#[derive(Subcommand, Debug)]
17pub enum Commands {
18 /// Automatically add relevant labels to a Github issue.
19 Labelize { org: String, repo: String, issue_number: u64 },
20}