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

Make override conventions an optional command #7

Open
walmon opened this issue Nov 11, 2018 · 0 comments
Open

Make override conventions an optional command #7

walmon opened this issue Nov 11, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@walmon
Copy link
Member

walmon commented Nov 11, 2018

For example, right now creating a model or a controller by default overrides the folder convention, creating files in the current folder.

conv generate model conv generate controller should accept [-h --here] with yes - no options. Default should be no.

If -h is set to yes, then require which chaincode project (inside ./packages folder) to receive the new file through [-p --project] param with the chaincode package project name.

Result expected:

Assuming the current structure is ./myproject/packages/coffeechain whereas coffeechain folder is a chaincode project.

# Creates file in `./`
conv generate model myToken -h yes

# Creates file in `./packages/coffeechain`
conv generate model myToken -h yes -p coffeechain
@walmon walmon added the enhancement New feature or request label Nov 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant