[style] [s]: update linter fixes
This commit is contained in:
@@ -32,23 +32,22 @@ program
|
|||||||
.parse(process.argv);
|
.parse(process.argv);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to ask a custon name if was not passed as parameter
|
* Method to ask a custon name if was not passed as parameter
|
||||||
* returns the value passed from terminal input
|
* returns the value passed from terminal input
|
||||||
*/
|
*/
|
||||||
async function promptPath(){
|
async function promptPath() {
|
||||||
return prompts({
|
return prompts({
|
||||||
type: 'text',
|
type: "text",
|
||||||
name: 'path',
|
name: "path",
|
||||||
message: 'Choose a name to your project',
|
message: "Choose a name to your project",
|
||||||
initial: '',
|
initial: "",
|
||||||
validate: name => {
|
validate: (name) => {
|
||||||
//TODO Method to validate valid path name
|
//TODO Method to validate valid path name
|
||||||
return true
|
return true;
|
||||||
}
|
},
|
||||||
})
|
});
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main method to start CLI and validate inputs
|
* Main method to start CLI and validate inputs
|
||||||
|
|||||||
Reference in New Issue
Block a user