JustBash.Commands.Registry (JustBash v0.4.0)

View Source

Registry of all available bash commands.

Maps command names to their implementing modules.

Summary

Functions

Check if a command is a shell builtin.

Check if a command exists.

Get the module that implements the given command.

List all available command names.

Functions

builtin?(name)

@spec builtin?(String.t()) :: boolean()

Check if a command is a shell builtin.

exists?(name)

@spec exists?(String.t()) :: boolean()

Check if a command exists.

get(name)

@spec get(String.t()) :: module() | nil

Get the module that implements the given command.

list()

@spec list() :: [String.t()]

List all available command names.