[style] [s]: update linter fixes
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user