mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-14 11:47:01 +05:30
Merge pull request #9 from msfjarvis/colored-subcommands
subcommands: add colored output
This commit is contained in:
commit
767da20d35
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,7 @@ fn main() -> anyhow::Result<()> {
|
||||||
.subcommand(
|
.subcommand(
|
||||||
App::new("freeze")
|
App::new("freeze")
|
||||||
.about("Generate a gitice.lock file with all the repositories in the given directory")
|
.about("Generate a gitice.lock file with all the repositories in the given directory")
|
||||||
|
.setting(AppSettings::ColoredHelp)
|
||||||
.args(&[Arg::with_name("directory")
|
.args(&[Arg::with_name("directory")
|
||||||
.help("Directory to look for Git repos in")
|
.help("Directory to look for Git repos in")
|
||||||
.required(true)
|
.required(true)
|
||||||
|
@ -34,6 +35,7 @@ fn main() -> anyhow::Result<()> {
|
||||||
.subcommand(
|
.subcommand(
|
||||||
App::new("thaw")
|
App::new("thaw")
|
||||||
.about("Given a gitice.lock and a directory, clones back all the repositories from the lockfile in the directory")
|
.about("Given a gitice.lock and a directory, clones back all the repositories from the lockfile in the directory")
|
||||||
|
.setting(AppSettings::ColoredHelp)
|
||||||
.args(&[
|
.args(&[
|
||||||
Arg::with_name("directory")
|
Arg::with_name("directory")
|
||||||
.help("Directory to restore repositories in")
|
.help("Directory to restore repositories in")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue