Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
566 changes: 566 additions & 0 deletions CODE_REVIEW.md

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions ci/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,20 @@ use codeinput::utils::types::LogLevel;
author,
about,
long_about = "code input CLI",
version
version,
subcommand_required = true,
arg_required_else_help = true
)]
//TODO: #[clap(setting = AppSettings::SubcommandRequired)]
//TODO: #[clap(global_setting(AppSettings::DeriveDisplayOrder))]
pub struct Cli {
/// Set a custom config file
/// TODO: parse(from_os_str)
#[arg(short, long, value_name = "FILE")]
pub config: Option<PathBuf>,

/// Set a custom config file
/// Enable debug mode
#[arg(name = "debug", short, long = "debug", value_name = "DEBUG")]
pub debug: Option<bool>,

/// Set Log Level
/// Set log level (debug, info, warn, error)
#[arg(
name = "log_level",
short,
Expand All @@ -42,6 +41,10 @@ pub struct Cli {
)]
pub log_level: Option<LogLevel>,

/// Suppress progress output (quiet mode)
#[arg(short, long, global = true)]
pub quiet: bool,

/// Subcommands
#[clap(subcommand)]
command: Commands,
Expand Down
Loading
Loading