Class: GLI::Commands::MarkdownDocumentListener

Inherits:
Object
  • Object
show all
Defined in:
lib/doing/markdown_document_listener.rb

Overview

DocumentListener class for GLI documentation generator

Instance Method Summary collapse

Constructor Details

#initialize(_global_options, _options, _arguments, app) ⇒ MarkdownDocumentListener

Returns a new instance of MarkdownDocumentListener.

Instance Method Details

#beginningObject

#command(name, aliases, desc, long_desc, arg_name, arg_options) ⇒ Object

Gives you a command in the current context and creates a new context of this command

#commandsObject

#default_command(name) ⇒ Object

Gives you the name of the current command in the current context

#end_command(_name) ⇒ Object

Ends a command, and "pops" you back up one context

#end_commandsObject

#end_optionsObject

#endingObject

Called when processing has completed

#flag(name, aliases, desc, long_desc, default_value, arg_name, must_match, _type) ⇒ Object

Gives you a flag in the current context

#optionsObject

#program_desc(desc) ⇒ Object

Gives you the program description

#program_long_desc(desc) ⇒ Object

#switch(name, aliases, desc, long_desc, negatable) ⇒ Object

Gives you a switch in the current context

#version(version) ⇒ Object

Gives you the program version