-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add new command support #147
Comments
This is something we've discussed. Rolling the scaffolding packages into corral. Do you have ideas on how this would be implemented? |
Yes.It looks like Leiningen's template system: |
Are you saying it is a direct copy? Everything will be exactly the same? "looks like" suggests differences. I'd like to see a write up of how the templating would work for corral, not "looks like" something else. The process of doing the design for corral will likely expose dependencies and other issues that will need to be discussed and worked through. |
Not a simple copy. When a project is created using a template, it will automatically download the dependencies specified in corral.json. |
corral.json is part of the template, the author of the template has built in the required dependency information |
I dont understand
I don't understand. |
For example:
You will get this directory:
Its {
"deps": [
{
"locator": "github.com/mfelsche/ponycheck.git",
"version": "0.5.4"
},
{
"locator": "github.com/ponylang/valbytes.git",
"version": "0.5.0"
},
{
"locator": "github.com/ponylang/net_ssl.git",
"version": "1.0.0"
}
],
"info": {}
} |
I don't understand what your replies have to do with how the templating would work. |
To put it simply: initialize a pony project with a specific structure and automatically download dependencies. |
This reply has as far as I can tell nothing to do with what I asked. But I see where the confusion is so let me try again: Are you saying this will be a is a direct copy of how leingein works? Everything will be exactly the same? You siad "looks like" suggests differences. I'd like to see a write up of how the templating would work for corral, not "looks like" something else. The process of doing the design for corral will likely expose dependencies and other issues that will need to be discussed and worked through. |
Yes, it will be a is a direct copy of how |
About templates, I think the problems of corral and |
I absolutely this Corral should have a I see this similar to but not the same as I think a more limited design is best at this point and we can expand as needed. My alternative proposal is mostly to do what the library scaffolding does currently, but in Pony rather than BASH. We limited the allowed variables to those currently available here and reuse the templates already available in the library scaffolding generator src/ directory. The improvement I would make beyond the library scaffolding is adding more options in the form choices to use So the command might be used as The more user-centric variables (i.e., This would then perhaps require an addition configuration command used like We would need to determine what a minimum configuration looks like and what a local override then looks like. Alternatively we can drastically pare down functionality and go more of the My vote as a hopeful individual is the proposal above to roll all of the library scaffolding into a |
@rhagenson stable is deprecated so I don't want to support it, but YES to like what is being done currently in scaffolding but in Pony. I don't want to support CircleCI at this time. Multiple things are tied to GH already in the scaffolding and setting up GHActions is much easier so I think we should go with it. |
Sounds good. So a blend of minimal with rolling functionality over is what you have in mind? Something like |
Who is working on this? I can't find a PR or branch regarding this topic. |
AFAIK, no one is working on this at the moment |
Add new command support for corral
There is already an
init
command, why is it superfluous?It is the premise of adding template system to corral.
It looks like this logic:
mkdir hello cd hello corral init
The final new command:
results:
The text was updated successfully, but these errors were encountered: