chore: remove no-vcs option (moved to a later stage if github is someday adopted

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-07-31 23:00:53 +02:00
parent 2d5abedf1a
commit 2650edb61e
2 changed files with 30 additions and 14 deletions

View File

@@ -73,15 +73,6 @@ struct GlobalArgs {
#[arg(long, global = true, help_heading = "Global")]
dry_run: bool,
/// no version control system, forces please to allow no .git/ or friends
#[arg(
long,
global = true,
help_heading = "Global",
long_help = "no version control system. This forces cuddle-please to accept that it won't be running in git. All fields will have to be fed through values in the given commands."
)]
no_vcs: bool,
/// Inject configuration from stdin
#[arg(
long,
@@ -402,11 +393,7 @@ impl Command {
}
fn get_git(&self, current_dir: &Path) -> anyhow::Result<VcsClient> {
if self.global.no_vcs {
Ok(VcsClient::new_noop())
} else {
VcsClient::new_git(current_dir)
}
VcsClient::new_git(current_dir)
}
fn get_from_environment(&self, config: &mut PleaseConfig) -> anyhow::Result<()> {