Current section
Files
Jump to
Current section
Files
priv/docs/templates/valid_args_callback.md
This callback checks the correctness of the arguments generated for the command `<%= info.name %>`.
## Available variables
### State
- `state` contains the complete symbolic state of the model.
<%= for attr <- info.attrs, do: "- `#{Macro.var(attr, nil) |> Macro.to_string}` attribute defined in the state declaration.\n" %>
### Arguments
- `arguments` contains all the generated arguments of the command.
<%= for arg <- info.args, do: "- `#{Macro.var(arg, nil) |> Macro.to_string}` argument defined in the command declaration.\n" %>