outil
Functions
pub fn command(name: String, description: String, continue: fn(
Command(a),
) -> Command(a)) -> Command(a)
Create a command with the given name and description, and pass it to the given continuation function for further configuration.
The command gets a default implementation that returns an error.
pub fn execute(cmd: Command(a), args: List(String)) -> Result(
a,
Error,
)
Execute the command with the given argument vector, without the program name.
pub fn implement(cmd: Command(a), run: fn(List(String)) ->
Result(a, Error)) -> Command(a)
Add the code to evaluate when the command is executed.