class Docopt::BashCompletion

Defined in:

bash_completion.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(doc : String, custom_completions : Hash(String, String) = {} of String => String) #

[View source]

Instance Method Detail

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

ameba:disable Metrics/CyclomaticComplexity


[View source]
def create_compreply(param_tree : CommandParams) : String #

[View source]
def create_section(cmd_name : String, param_tree : CommandParams, option_help : Hash(String, String), level_num : Int32) : String #

[View source]
def create_subcommand_switch(cmd_name : String, level_num : Int32, subcommands : Array(String), opts : Array(String)) : String #

[View source]
def get_completion_file_content(cmd : String, param_tree : CommandParams, option_help : Hash(String, String)) : String #

[View source]
def get_completion_filepath(cmd : String) : String #

[View source]
def get_completion_path : String #

[View source]
def parse_params : Tuple(CommandParams, Hash(String, String)) #

[View source]
def sanitize_name(name : String) : String #

[View source]