Command Types

The frontend @main and @cast restrict a lot features to make the package interface as simple as possible. However, if you want to customize the behaviour, you can also create command objects directly via the interfaces at this level, which are all in Comonicon.Types.

References

Comonicon.Types.LeafCommandType
LeafCommand <: AbstractCommand

LeafCommand describes the command at the end of a CLI, e.g in the following show is LeafCommand, it is the command that actually executes things. See also NodeCommand.

git remote show origin
source
Comonicon.Types.NodeCommandType
NodeCommand <: AbstractCommand

NodeCommand describes the command in the middle of a CLI, e.g in the following remote is a NodeCommand, it will dispatch the call to its sub-command show. See also LeafCommand.

git remote show origin
source
Comonicon.Types.splittextMethod
splittext(s)

Split the text in string s into an array, but keep all the separators attached to the preceding word.

Note

this is copied from Luxor/text.jl

source