From 5ba2452e9c6eade285c9cd0cfc9ea4a71c340986 Mon Sep 17 00:00:00 2001 From: shmck Date: Sat, 30 May 2020 09:48:37 -0700 Subject: [PATCH] text edits --- package-lock.json | 14 +++++++------- package.json | 4 ++-- src/cli.js | 12 ++++++------ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6e5df00..b846148 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@coderoad/cli", - "version": "0.0.1", + "version": "0.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -287,9 +287,9 @@ "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" }, "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", + "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -670,9 +670,9 @@ "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==" }, "simple-git": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.4.0.tgz", - "integrity": "sha512-lqeAiq+P7A7oIGIUllU1Jg9U2SHOdxzhnFU4p4yJdvNoR4O3lYGJCfaC4cGx//J7jkrE+FPs5dJR0JVg1wVwfQ==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.5.0.tgz", + "integrity": "sha512-4gmtMqfIL9bsBNJDP/rDwZe3GsQL/tp85Qv5cmRc8iIDNOZJS4IX1oPfcqp9b7BGPc5bfuw4yd1i3lQacvuqDQ==", "requires": { "@kwsites/exec-p": "^0.4.0", "debug": "^4.0.1" diff --git a/package.json b/package.json index ba86fd6..3e31c2f 100644 --- a/package.json +++ b/package.json @@ -20,11 +20,11 @@ "arg": "^4.1.3", "esm": "^3.2.25", "inquirer": "^7.1.0", - "js-yaml": "^3.13.1", + "js-yaml": "^3.14.0", "listr": "^0.14.3", "lodash": "^4.17.15", "ncp": "^2.0.0", "npc": "0.0.1", - "simple-git": "^2.4.0" + "simple-git": "^2.5.0" } } diff --git a/src/cli.js b/src/cli.js index d2cc102..83f254d 100644 --- a/src/cli.js +++ b/src/cli.js @@ -63,7 +63,7 @@ async function promptForMissingOptions(options) { questions.push({ type: 'input', name: 'localGit', - message: 'Please, provide a directory of the valid git repository: ', + message: 'Please, provide a local directory of the valid git repository: ', when: (answers) => answers.source === localGit, }); @@ -80,7 +80,7 @@ async function promptForMissingOptions(options) { questions.push({ type: 'list', name: 'source', - message: 'It was provided both a local git directory and a remote address. Please, choose either one or those to parse: ', + message: 'A local git directory and a remote address were both provided. Please, choose either one or those to parse: ', choices: [localGit, remoteGit], default: localGit, }); @@ -89,7 +89,7 @@ async function promptForMissingOptions(options) { // if the branch containing the code is not provided if (!options.codeBranch) { questions.push({ - type: 'imput', + type: 'input', name: 'codeBranch', message: 'Please, provide the branch with the code commits: ', }); @@ -98,7 +98,7 @@ async function promptForMissingOptions(options) { // if the branch containing the setup files is not provided if (!options.setupBranch) { questions.push({ - type: 'imput', + type: 'input', name: 'setupBranch', message: 'Please, provide the branch with the setup files (coderoad.yaml and tutorial.md): ', }); @@ -132,10 +132,10 @@ export async function cli(args) { // If help called just print the help text and exit if (options.help) { - console.log('Docs can be found at github: https://github.com/coderoad/builder-cli/'); + console.log('Docs can be found at github: https://github.com/coderoad/coderoad-cli/'); } else if (!options.command) { - console.log(`The command is missing. Chose either 'create' or 'build' and its options.`) + console.log(`The command is missing. Choose either 'create' or 'build' and its options.`) } else { switch (options.command) {