[style] [s]: update linter fixes

This commit is contained in:
Thadeu Cotts
2020-11-24 15:42:16 -03:00
parent 646e7e5005
commit c1f27c6820

View File

@@ -53,24 +53,27 @@ async function promptPath() {
* Main method to start CLI and validate inputs * Main method to start CLI and validate inputs
*/ */
async function run(){ async function run(){
if(typeof projectPath === 'string'){ if (typeof projectPath === "string") {
projectPath = projectPath.trim() projectPath = projectPath.trim();
} }
if(!projectPath){ if (!projectPath) {
const response = await promptPath() const response = await promptPath();
if(typeof response.path === 'string'){ if (typeof response.path === "string") {
projectPath = response.path.trim() projectPath = response.path.trim();
} }
} }
if(!projectPath){ if (!projectPath) {
console.log() //TODO separate log methods
console.log('Please choose a name to your project:') console.log();
console.log() console.log("Please choose a name to your project:");
console.log('Example:') console.log();
console.log(`${chalk.cyan(program.name())} ${chalk.yellow('ny-portal-app')}`) console.log("Example:");
console.log() console.log(
`${chalk.cyan(program.name())} ${chalk.yellow("ny-portal-app")}`
);
console.log();
process.exit(1) process.exit(1);
} }
/** /**