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