You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Initializes the logger based on the debug flag and `RUST_LOG` environment variable and uses
19
-
/// the [`CliHarness`] to generate a [`Config`](config::Config). Then, this calls
20
-
/// [`CliHarness::run()`].
19
+
constHELP:&str = "\
20
+
More information: https://github.com/nickgerace/gfold
21
+
22
+
Description: this application helps you keep track of multiple Git repositories via CLI. By default, it displays relevant information for all repos in the current working directory.
23
+
24
+
Config File Usage: while CLI options are prioritized, default options will fallback to the config file if it exists. Here are the config file lookup locations:
25
+
26
+
$XDG_CONFIG_HOME/gfold.toml
27
+
$XDG_CONFIG_HOME/gfold/config.toml
28
+
$HOME/.config/gfold.toml (or {{FOLDERID_Profile}}\\.config\\gfold.toml on Windows)
29
+
30
+
Troubleshooting: investigate unexpected behavior by prepending execution with \"RUST_BACKTRACE=1\"and \"RUST_LOG=debug\". You can adjust those variable's values to aid investigation.";
31
+
32
+
#[derive(Parser)]
33
+
#[command(version, about = HELP, long_about = None)]
34
+
structCli{
35
+
/// specify path to target directory (defaults to current working directory)
36
+
pubpath:Option<String>,
37
+
38
+
#[arg(short, long)]
39
+
pubcolor_mode:Option<ColorMode>,
40
+
#[arg(short, long)]
41
+
pubdisplay_mode:Option<DisplayMode>,
42
+
43
+
/// display finalized config options and exit (merged options from an optional config file and command line arguments)
44
+
#[arg(long)]
45
+
pubdry_run:bool,
46
+
/// ignore config file settings
47
+
#[arg(short, long)]
48
+
pubignore_config_file:bool,
49
+
}
50
+
51
+
/// Initializes the logger based on the debug flag and `RUST_LOG` environment variable, then
52
+
/// parses CLI arguments and generates a [`Config`](config::Config) by merging configurations as needed,
53
+
/// and finally collects results and displays them.
0 commit comments