struct Noir::CLI::Catalog::Command

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, summary : String, actions : Array(String) = [] of String, args : String | Nil = nil) #

[View source]

Instance Method Detail

def actions : Array(String) #

def args : String | Nil #

def clone #

[View source]
def copy_with(name _name = @name, summary _summary = @summary, actions _actions = @actions, args _args = @args) #

[View source]
def name : String #

def summary : String #

def usage_args : String #

What noir help prints after the verb.


[View source]