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
zef start or zef run? #222
Comments
|
Firsts lets examine how a bin script from a perl6 distribution (such as zef) is installed and invoked How bin/ scripts are usually determined for a local path Note above that the wrappers installed for each bin/ script This is one of the parts s22 did not go into a great deal about. Currently an author does not declare bin/ scripts anywhere in META6.json. But as we can see such an implementation would be trivial; create a A CompUnit::Repository has an API for looking up some relative path (name-path) from a specific distribution. This is notable for something like CompUnit::Repository::Installation because this type of CompUnit::Repository contains muliple distributions, e.g. Zef could include different logic on a per-repo/dist basis itself (bypassing the PRs), but consider things like 3rd party distribution handling or 3rd party comp unit repos and it starts to make more sense. Whats important to take from this is that you should be able to do this without zef before it is possibility added to zef. For the sake of this issue lets assume the PRs mentioned as merged such that:
I agree most people do not want to remember that invocation. It is easy to imagine a I'm unsure of what to think of the So considering everything so far it is certainly possible. Much of the groundwork has indeed already been done with these types of things in mind. The questions then become based on what this theoretical command should do in various situations: version selection (bin/zef run a Zef::CLI from a newer version of zef?), -Ilib, etc. |
|
Thanks for considering it and for the amazing tutorial 💯 |
Provide a default command and JSON path that allows to start automatically perl6 apps, à la npm start
Context
META6.json is increasingly becoming the
package.JSONorcpanfileof perl6. It's useful now to insert dependencies of a particular app of module and install them using zef install --deps-only. zef test is also pretty much standard, as well as zef build. Wouldn't be a big step to add some command to start applications or sun them.Expected Behavior
zef run|startorzef run|start .would look into thescriptkey of the META6.json file and run it.Actual Behavior
This is a RFC. Nothing happens now.
Steps to Reproduce
N/A
Your Environment
N/A
The text was updated successfully, but these errors were encountered: