Jacob v0.1.1 Jacob.Command.Concerns.Handleable behaviour View Source

Makes a command “Handleable”

This module is automatically used by your commands when using Jacob.Command

Link to this section Summary

Callbacks

This is the Command entry point

Link to this section Callbacks

Link to this callback handle(argv) View Source
handle(argv :: list()) :: any()

This is the Command entry point.

A Default implementation for this function is provided. But you may override it if needed.

The default implementation will handle the given argv by first passing them through the Jacob.Command.Concerns.HasInitializers.initialize/1 callback and then forwarding them to the Jacob.Command.run/1 callback.