draconic v0.1.1 Draconic.Command behaviour

Link to this section Summary

Link to this section Types

Link to this type args()
args() :: [String.t()]
Link to this type command_spec()
command_spec() :: map()
Link to this type flags()
flags() :: keyword()
Link to this type status_code()
status_code() :: integer() | nil

Link to this section Functions

Link to this macro alias_flag(alias, flag) (macro)
Link to this macro desc(description) (macro)
Link to this macro flag(name, type) (macro)
Link to this macro name(name) (macro)
Link to this macro short(short_desc) (macro)
Link to this macro subcommand(module) (macro)

Link to this section Callbacks

Link to this callback command_spec()
command_spec() :: command_spec()
Link to this callback run(flags, args)
run(flags(), args()) :: status_code()