use std::path::PathBuf;
use clap::{Parser, Subcommand};
#[derive(Debug, Parser)]
#[command(
name = "navi",
version,
about = "Focused, configurable PR-review alerts from GitHub to Slack",
long_about = "navi watches your GitHub review activity and sends you a tight, \
high-signal Slack DM stream — review requests, replies to your \
comments, re-review requests, dismissals, merges and closes — \
without the noise of GitHub's native Slack app."
)]
pub struct Cli {
#[arg(long, short, global = true, value_name = "FILE")]
pub config: Option<PathBuf>,
#[command(subcommand)]
pub command: Command,
}
#[derive(Debug, Subcommand)]
pub enum Command {
Init {
#[arg(long)]
force: bool,
},
Run,
Once {
#[arg(long)]
dry_run: bool,
},
TestSlack,
}