|
@ -12,8 +12,8 @@ use crate::errors::*; |
|
|
use crate::{helpers, template::GithubTemplates};
|
|
|
use crate::{helpers, template::GithubTemplates};
|
|
|
|
|
|
|
|
|
use directories::ProjectDirs;
|
|
|
use directories::ProjectDirs;
|
|
|
use std::path::PathBuf;
|
|
|
|
|
|
use structopt::{clap, StructOpt};
|
|
|
|
|
|
|
|
|
use std::{env, path::PathBuf};
|
|
|
|
|
|
use structopt::StructOpt;
|
|
|
|
|
|
|
|
|
/// Modified version of Clap's default template for proper help2man compatibility
|
|
|
/// Modified version of Clap's default template for proper help2man compatibility
|
|
|
///
|
|
|
///
|
|
@ -47,10 +47,6 @@ pub struct BoilerplateOpts { |
|
|
/// Display timestamps on log messages (sec, ms, ns, none)
|
|
|
/// Display timestamps on log messages (sec, ms, ns, none)
|
|
|
#[structopt(short, long, value_name = "resolution")]
|
|
|
#[structopt(short, long, value_name = "resolution")]
|
|
|
pub timestamp: Option<stderrlog::Timestamp>,
|
|
|
pub timestamp: Option<stderrlog::Timestamp>,
|
|
|
|
|
|
|
|
|
/// Write a completion definition for the specified shell to stdout (bash, zsh, etc.)
|
|
|
|
|
|
#[structopt(long, value_name = "shell")]
|
|
|
|
|
|
pub dump_completions: Option<clap::Shell>,
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/// Checks if the given dir contains the root `.git` dir
|
|
|
/// Checks if the given dir contains the root `.git` dir
|
|
|