-
Notifications
You must be signed in to change notification settings - Fork 418
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
Run console scripts whose name doesn't match package name #725
Comments
Also, for whatever reason, |
Try moving the spec argument. It’s being interpreted as an argument to the program you are running. pipx run --spec PACKAGE APP |
$ pipx run --spec=textflip flip hello
oןןǝɥ Yup, that does work. But it feels really unintuitive to me, the Something like: $ pipx run --script=flip textflip And |
The syntax you suggested is not possible since |
Maybe the error message should explain that you can run
And in cases where there's a single executable, but with a different name than the package (usually a shorter command name for convenience), the user's intention is clearly to run that one. Maybe pipx could just run textflip.flip in this case? |
An error message improvement would definitely be nice.
Makes sense to me (if we add a line reminding the user what command is actually being invoked). Fancy a contribution? |
Some comments for the future: Maybe some extra metadata could be added into |
I could take it up if you want! |
There’s already a mechanism for that introduced in #615. For a package named
Go ahead! |
I just did a quick search from my phone, but didn’t see it in the docs — is pipx.run captured in our documentation anywhere? We should add a section dedicated to adding pipx support for one’s package and add that to it. |
For eg:
So it does know about the script named
flip
, but I can't seem to figure out how to make it run that.I've tried doing:
pipx run textflip.flip
pipx run textflip --spec flip
pipx run textflip flip
etc.None of these seem to work, and I can't seem to find the relevant documentation.
The text was updated successfully, but these errors were encountered: