struct
Noir::CLI::Catalog::Command
- Noir::CLI::Catalog::Command
- Struct
- Value
- Object
Overview
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.
Defined in:
cli/catalog.crConstructors
Instance Method Summary
- #actions : Array(String)
- #args : String | Nil
- #clone
- #copy_with(name _name = @name, summary _summary = @summary, actions _actions = @actions, args _args = @args)
- #name : String
- #summary : String
-
#usage_args : String
What
noir helpprints after the verb.
Constructor Detail
def self.new(name : String, summary : String, actions : Array(String) = [] of String, args : String | Nil = nil)
#
Instance Method Detail
def copy_with(name _name = @name, summary _summary = @summary, actions _actions = @actions, args _args = @args)
#