-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Feature Request: Enable Third Party Subcommands #15757
Comments
@littledivy Is this request formatted properly? |
While this is an interesting feature request, there are many questions to answer on how this could be implemented. @aunyks could you provide some prior art how this feature is implemented in cargo? |
@bartlomieju Of course. Here’s some Cargo documentation on custom subcommands: https://doc.rust-lang.org/cargo/reference/external-tools.html#custom-subcommands. I couldn’t find official Git documentation for the same feature, but this article conveys the idea: https://www.atlassian.com/git/articles/extending-git. |
I think |
If this is only for yourself, it shouldn't be too hard to write a shell function. Fish example: function deno --argument-names command
if command --query deno-$command
deno-$command $argv[2..]
else
command deno $argv
end
end If you are looking for distribution, |
Hi! I’d love to have the ability to create and install third party subcommands.
I’m imagining functionality like Git or Cargo, where if I have an executable
deno-foo
in my PATH, then runningdeno foo —my —flags
will invokedeno-foo
with—my —flags
as arguments.Does something like this already exist within Deno? If not, I’d love to help implement.
The text was updated successfully, but these errors were encountered: