Credo v1.0.4 Credo.Service.Commands View Source

This module is used to keep track of the available commands.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Returns the registered module for the given command_name

Returns a List of all command modules

Returns a List with the names of all commands

Registers a given command_mod with the given command_name

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Returns the registered module for the given command_name.

iex> Credo.Service.Commands.get("help")
Credo.CLI.Command.Help

Returns a List of all command modules.

Returns a List with the names of all commands.

Link to this function put(command_name, command_mod) View Source

Registers a given command_mod with the given command_name.

iex> Credo.Service.Commands.put("help", Credo.CLI.Command.Help)