Prompt.Router.CommandSpec (prompt v0.12.0)
View SourceOne command of a router, built by Prompt.Router.command/2 and
Prompt.Router.command/3. It is passed to Prompt.Router.command_help/1
and to Prompt.Router.Usage; do not build it by hand.
Fields:
:name- the command word as an atom or string,""for the fallback command.:module- thePrompt.Commandmodule that runs it, ornilfor a group that only holds subcommands.:args- thePrompt.Router.ArgSpecstructs of its flags and positionals, in definition order.:subcommands- nestedCommandSpecstructs, in definition order.:parents- the command words typed before this command's name, for example["categories"]forcategories add.[]at the top level.