Skip to main content

Module discover

Module discover 

Source
Expand description

Finding an app’s plugin programs (from lumen’s discovery): every executable named <prefix><name> in, in order, $<ENV> (folders separated as in PATH), the user’s plugin folder ($XDG_DATA_HOME/<app>/plugins or ~/.local/share/<app>/plugins), the folder of the running program (an installed app with its plugins beside it, or target/<profile> in development) and PATH. The first program of each name wins; each is asked for its manifest (<program> info).

Structs§

PluginKind
An app’s kind of plugin: how its programs are named and where they are looked for.

Functions§

info
Asks the program at path for its manifest and checks the protocol.