struct

Noir::CLI::Catalog::Command

Inherits Struct < Value < Object

One top-level verb.

actions is the fixed set of words that may follow the verb; it doubles as the argument shape shown by noir help (cache info | clear | purge). args overrides that for verbs whose argument isn't a fixed vocabulary.

Constructors

new(name : String, summary : String, actions : Array(String) = [] of String, args : String | Nil = nil)
Source

Instance methods

actions
args
clone
Source
copy_with(name _name = @name, summary _summary = @summary, actions _actions = @actions, args _args = @args)
Source
name
summary
usage_args

What noir help prints after the verb.

Source