-
Notifications
You must be signed in to change notification settings - Fork 4
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
Research how other tools handle scripts in the top-level command #154
Comments
Key points
Implementation note: |
Did a first pass with Groovy but the code base was too enterprise-y for me to find: https://github.com/apache/groovy/ |
If I'm understanding See https://github.com/commercialhaskell/stack/blob/master/src/main/Stack/CLI.hs#L111,L117 |
Didn't quite find it for elixir but my guess is its in or around https://github.com/elixir-lang/elixir/blob/59bf2247b4e0b9821ed5d56f91bc51bb2a7a5747/lib/elixir/lib/kernel/cli.ex |
(Hi. I came here via TWIR and the blog. I hope this is the right place to put this.) I think the right answer is to require an option to say "this is a script invocation". That makes things unambiguous. Prior art:
Conflating the cargo subcommand namespace with the cargo script namespace is highly undesriable and I bet it would cause trouble. I think this should be sorted out before the feature is stabilised. The precise option doesn't matter very much, but there should be a one-letter alias since |
Note that this was linked to as past research and this Issue has no bearing on the feature at this time. All development has shifted to RFCs and the Cargo repo. |
Say we allow
cargo
in the#!
, what inspiration can we take?The text was updated successfully, but these errors were encountered: