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

[CLI] lb model should prompt repository selection/creation #1587

Closed
hacksparrow opened this issue Aug 2, 2018 · 2 comments
Closed

[CLI] lb model should prompt repository selection/creation #1587

hacksparrow opened this issue Aug 2, 2018 · 2 comments

Comments

@hacksparrow
Copy link
Contributor

hacksparrow commented Aug 2, 2018

Description / Steps to reproduce / Feature proposal

Create a new model using lb model.

Current Behavior

Only model files are generated.

Expected Behavior

Should prompt the user to either:

  • Link an existing repository to the model
  • Create a new repository for the model

See Reporting Issues for more tips on writing good issues

@virkt25
Copy link
Contributor

virkt25 commented Aug 2, 2018

With LoopBack 4, one of the intentions is to move away from having a Model tied to a DataSource. We should be able to use model with multiple repositories if needed. As such I don't think lb4 model should be prompting for or trying to link a model to a repository but rather lb4 repository (when introduced) should be doing the linking between a model, and datasource to create an appropriate repository.

That said ... maybe this signifies that we eventually need a command to create a series of artifacts together since in most cases you'll want to create a model followed by a repository and controller for the model ... so a new command to streamline this process might be helpful but I don't know if it should be done via lb4 model ... maybe a new command of sorts but I can't think of a good name.

@bajtos
Copy link
Member

bajtos commented Aug 23, 2018

Let's close this as a duplicate of #1588

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

No branches or pull requests

3 participants