Skip to content

Allow ov to act as an alias for just directly when inside the Openverse repository #4564

Open

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:

  1. Try executing the command directly with the basic exec.py strategy, just run it as a regular command.
  2. If that returns command not found, pass the command to just
  3. 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>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    ✨ goal: improvementImprovement to an existing user-facing feature🟩 priority: lowLow priority and doesn't need to be rushed🤖 aspect: dxConcerns developers' experience with the codebase🧱 stack: mgmtRelated to repo management and automations

    Type

    No type

    Projects

    • Status

      📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions