Skip to content

Implement a command-not-found-like feature #541

Description

@cmarqu

Is your feature request related to a problem? Please describe.

It is sometimes not at all easy to find out which module(s) would provide a certain executable.
In Linux distributions, there are tools like command-not-found which suggest which package to install in such a case.

Describe the solution you'd like

It would be nice if I could ask modules which specific module I need to load to get an executable in PATH.

Describe alternatives you've considered

Additional context

A very simplistic implementation would be to loop over all (or latest) modules, load each of them in a subshell, check if the binary is available (using command -v, which), and print the module name if so.

Speeding things up with e.g. parallel processing and/or caching could come later.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions