Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create App with interactive Menu #209

Closed
wants to merge 11 commits into from
Closed

Create App with interactive Menu #209

wants to merge 11 commits into from

Conversation

ntwcklng
Copy link
Contributor

Related: #208

@ntwcklng
Copy link
Contributor Author

Sorry for the messed up commits...

name: 'projectType',
message: 'Select a Project Type',
choices: PROJECT_TYPES.map(type => {
const displayName = type.replace('-', ' ').split(' ').map(x => x[0].toUpperCase() + x.slice(1)).join(' ')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should create a new constant for every projectType with a pretty name?

type: 'input',
name: 'projectName',
message: 'Enter a Project Name',
filter: input => input.split(' ').join('-')
Copy link
Contributor Author

@ntwcklng ntwcklng Dec 11, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with that, its possible to create projects with spaces inside their names

@ntwcklng
Copy link
Contributor Author

@insin are you still interested in this interactive menu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant