class

Docopt::BashCompletion

Inherits Reference < Object

Constructors

new(doc : String, custom_completions : Hash(String, String) = {} of String => String)
Source

Instance methods

build_command_tree(pattern : Docopt::Pattern, cmd_params : CommandParams) : CommandParams

ameba:disable Metrics/CyclomaticComplexity

Source
create_compreply(param_tree : CommandParams) : String
Source
create_option_compreply(param_tree : CommandParams) : String
Source
create_section(cmd_name : String, param_tree : CommandParams, option_help : Hash(String, String), level_num : Int32) : String
Source
create_subcommand_switch(cmd_name : String, level_num : Int32, subcommands : Array(String), opts : Array(String)) : String
Source
get_completion_file_content(cmd : String, param_tree : CommandParams, option_help : Hash(String, String)) : String
Source
get_completion_filepath(cmd : String) : String
Source
get_completion_path
Source
parse_params
Source
sanitize_name(name : String) : String
Source