Skip to content

Commit

Permalink
fix: use prompt from cli-helpers-engine
Browse files Browse the repository at this point in the history
  • Loading branch information
varl committed Dec 16, 2020
1 parent df1827b commit 9b7a12a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@dhis2/cli-helpers-engine": "2.0.1",
"@dhis2/cli-helpers-engine": "2.1.1",
"babel-eslint": "^10.1.0",
"cross-spawn": "^7.0.3",
"eslint": "^7.12.1",
Expand All @@ -43,7 +43,6 @@
"find-up": "^5.0.0",
"fs-extra": "^9.0.1",
"husky": "^4.3.0",
"inquirer": "^7.3.3",
"perfy": "^1.1.5",
"prettier": "^2.1.2",
"semver": "^7.3.2",
Expand Down
7 changes: 4 additions & 3 deletions src/commands/install.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const inquirer = require('inquirer')
const log = require('@dhis2/cli-helpers-engine').reporter
const { reporter, prompt } = require('@dhis2/cli-helpers-engine')

const { log } = reporter

const { configure } = require('../utils/config.js')
const { printGroups, projects } = require('../utils/groups.js')

const promptForProject = async () => {
const res = await inquirer.prompt([
const res = await prompt([
{
name: 'project',
message: 'Choose the project template',
Expand Down
9 changes: 5 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,14 @@
resolved "https://registry.yarnpkg.com/@commitlint/types/-/types-11.0.0.tgz#719cf05fcc1abb6533610a2e0f5dd1e61eac14fe"
integrity sha512-VoNqai1vR5anRF5Tuh/+SWDFk7xi7oMwHrHrbm1BprYXjB2RJsWLhUrStMssDxEl5lW/z3EUdg8RvH/IUBccSQ==

"@dhis2/cli-helpers-engine@2.0.1":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@dhis2/cli-helpers-engine/-/cli-helpers-engine-2.0.1.tgz#04ecea312ced7d6a84927aa47c5cdb5e57a561ae"
integrity sha512-eEjDLC1Uc4MpFJxw3RUbC99CGiU9J26aPe5GZCdNJ2ny0so1QKtefxscQxcZOKZPM4svxBabiK2QJ7624dA2Vg==
"@dhis2/cli-helpers-engine@2.1.1":
version "2.1.1"
resolved "https://registry.yarnpkg.com/@dhis2/cli-helpers-engine/-/cli-helpers-engine-2.1.1.tgz#34a15866b1bc16ae5c4997d79256ee787b40c11a"
integrity sha512-7HrpYwenDzPFUMRsIuStQRu7SzwVRq6NCy4k8CbZ4/VTFaWnpkncTAz+C8ztkEQQSYTW7mDLLenJ9qpkhXgoTA==
dependencies:
chalk "^3.0.0"
fs-extra "^8.0.1"
inquirer "^7.3.3"
request "^2.88.0"
tar "^4.4.8"
update-notifier "^3.0.0"
Expand Down

0 comments on commit 9b7a12a

Please sign in to comment.