Skip to content
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

remove: pdm-style call command #32

Closed
metaist opened this issue Jul 25, 2024 · 0 comments
Closed

remove: pdm-style call command #32

metaist opened this issue Jul 25, 2024 · 0 comments

Comments

@metaist
Copy link
Owner

metaist commented Jul 25, 2024

The idea behind call commands comes from pdm. It's a nice short-hand where you write module:func and it turns into a python call.

Some issues:

  1. Not transparent: module:func becomes python -c 'import sys, module as _1; sys.exit(_1.func())'. The difference between what you write and what you get is pretty big.
  2. Requires Python: Eventually I want to remove python as a dependency. This keeps it baked in.
  3. No argument interpolation: pdm doesn't support injecting arguments into this kind of command.
  4. No error suppression: This really is a very different kind of thing from the rest of the types of commands.

Removing this will make us a little less compatible with pdm, but it's probably worth keeping it simple.

metaist added a commit that referenced this issue Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant