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

Support for external commands? #6489

Closed
skshetry opened this issue Aug 25, 2021 · 2 comments
Closed

Support for external commands? #6489

skshetry opened this issue Aug 25, 2021 · 2 comments
Labels
A: cli Related to the CLI enhancement Enhances DVC

Comments

@skshetry
Copy link
Member

skshetry commented Aug 25, 2021

It'd be amazing to have a support for external command being able to run dvc <cmd> by just having a dvc-<cmd> in the user's PATH, similar to git.

Looking at the argparse, it does not seem to be possible to add support for default subparser or a fallback subparser. So, we may be need to add all the commands from the PATH matching dvc- prefix during ArgumentParser build. Also may need to take into account a few things for windows
(eg: PATHEXT, current directory has higher precedence, multiple executable extensions, etc.).

Also see: iterative/cml#699.

@daavoo
Copy link
Contributor

daavoo commented Aug 25, 2021

What about also allowing users to register custom commands via entry-points:

https://packaging.python.org/guides/creating-and-discovering-plugins/#using-package-metadata

@pared pared added the enhancement Enhances DVC label Sep 9, 2021
@daavoo daavoo added the A: cli Related to the CLI label Feb 22, 2022
@skshetry
Copy link
Member Author

Closing, so far there has not been a usecase. live command was deprecated/removed.

@skshetry skshetry closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: cli Related to the CLI enhancement Enhances DVC
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants