Merge pull request #9 from msfjarvis/colored-subcommands

subcommands: add colored output
This commit is contained in:
Harsh Shandilya 2020-10-24 15:19:57 +05:30 committed by GitHub
commit 767da20d35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,6 +26,7 @@ fn main() -> anyhow::Result<()> {
.subcommand(
App::new("freeze")
.about("Generate a gitice.lock file with all the repositories in the given directory")
.setting(AppSettings::ColoredHelp)
.args(&[Arg::with_name("directory")
.help("Directory to look for Git repos in")
.required(true)
@ -34,6 +35,7 @@ fn main() -> anyhow::Result<()> {
.subcommand(
App::new("thaw")
.about("Given a gitice.lock and a directory, clones back all the repositories from the lockfile in the directory")
.setting(AppSettings::ColoredHelp)
.args(&[
Arg::with_name("directory")
.help("Directory to restore repositories in")