Skip to content

Commit

Permalink
build(deps): bump commander from 6.2.1 to 7.0.0 (#338)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
shaftoe and dependabot[bot] committed Jan 19, 2021
1 parent 9bcf05a commit 0d16dee
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"@types/npm": "^2.0.31",
"chalk": "^4.1.0",
"commander": "^6.0.0",
"commander": "^7.0.0",
"conjecture": "^0.1.2",
"cross-spawn": "^7.0.3",
"egad": "^0.2.0",
Expand Down
22 changes: 11 additions & 11 deletions src/helpers/user-interaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,24 +215,24 @@ export function runCliManager(): CliConfig {
.option("--no-git-init", "Skip Git repository initialization", false)
.version(`Create Probot App v${pkg.version}`);

program.parse(process.argv);
const options = program.parse(process.argv).opts();

if (!destination) printHelpAndFail();
if (program.showTemplates) {
if (options.showTemplates) {
getTemplates().forEach((template) => console.log(template));
process.exit();
}

return {
appName: program.appName,
author: program.author,
description: program.desc,
appName: options.appName,
author: options.author,
description: options.desc,
destination: destination,
email: program.email,
gitInit: program.gitInit,
overwrite: program.overwrite,
repo: program.repo,
template: program.template,
user: program.user,
email: options.email,
gitInit: options.gitInit,
overwrite: options.overwrite,
repo: options.repo,
template: options.template,
user: options.user,
};
}

0 comments on commit 0d16dee

Please sign in to comment.