subcommands: add colored output

Signed-off-by: ATechnoHazard <amolele@gmail.com>
This commit is contained in:
ATechnoHazard 2020-10-24 15:16:07 +05:30
parent fa7fea0df4
commit 7bbc33dd89
No known key found for this signature in database
GPG key ID: F475143EDEDEBA3C

View file

@ -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")