cli: add colored output to subcommands

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
SphericalKat 2020-11-09 17:25:21 +05:30
parent ce1b9ff28d
commit b46ba85002
No known key found for this signature in database
GPG Key ID: DD0B4C26654BA8E4

View File

@ -21,6 +21,7 @@ pub(crate) enum SubCommand {
/// recursively find git repos and record their states into a lockfile
#[derive(Clap)]
#[clap(setting = AppSettings::ColoredHelp)]
pub(crate) struct Freeze {
/// directory to search and freeze repos from.
pub(crate) directory: String,
@ -28,6 +29,7 @@ pub(crate) struct Freeze {
/// takes the given
#[derive(Clap)]
#[clap(setting = AppSettings::ColoredHelp)]
pub(crate) struct Thaw {
/// directory to put cloned repos into.
pub(crate) directory: String,