View Source API Reference nexus_cli v0.4.2

Modules

This is an example on how to use Nexus with an escript application.

Nexus can be used to define simple to complex CLI applications.

Define callback that a CLI module needs to follow to be able to be runned and also define helper functions to parse a single command againts a raw input.

Defines a command entry for a CLI module. It also implements some basic validations.

Define a structure to easy pattern matching the input on commands dispatched

Defines validations for a Nexus.Command struct

Should parse the command and return the value

Simple DSL to generate Regex "parsers" for Nexus.

Mix Tasks

This is a Mix Task example using Nexus. Basically, you can use both Mix.Task and Nexus modules, define your commands as usual with defcommand/2 and implement others callbacks.