Description
Problem
It's tedious to write ov just
or ov j
, and it would be nice if ov
acted like just if the command isn't found otherwise. So then something like ov frontend/dev
would "just work".
Description
I'm not sure of the performance of this, or how to achieve it (maybe some caching could be involved here and only the worst case scenario of nothing working takes the longest), where do something like this:
- Try executing the command directly with the basic
exec.py
strategy, just run it as a regular command. - If that returns command not found, pass the command to
just
- If that also returns not found, return a combined message that the command was neither found in the environment nor in the just recipes.
We could also go the other way around: try executing it as a just recipe first, then if that doesn't work, in the environment. The issue is just is a slight bit slower than bash at telling us if a command is found or not. Plus, this way would make name conflicts much worse, because with just at least you can easily specify you specifically want to run a just recipe (ov just
) but for regular commands, you'd need to do something like ov bash -c <whatever>
.
Metadata
Assignees
Labels
Type
Projects
Status
📋 Backlog