View Source Nexus.CLI.Dispatcher (nexus_cli v0.5.0)
Dispatches parsed CLI commands to the appropriate handler functions.
Summary
Functions
Dispatches the parsed command to the corresponding handler.
Functions
@spec dispatch(Nexus.CLI.t(), Nexus.Parser.result()) :: :ok | {:error, Nexus.CLI.error()}
Dispatches the parsed command to the corresponding handler.
module
is the module where the handler functions are defined.parsed
is the result fromNexus.Parser.parse_ast/2
.