class

Docopt::FishCompletion

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_argument_completions(arguments : Array(String), command_parts : Array(String), custom_name : String) : String
Source
create_command_completions(subcommands : Hash(String, CommandParams), command_parts : Array(String), option_help : Hash(String, String)) : String
Source
create_completion_condition(command_parts : Array(String)) : String
Source
create_option_completions(options : Array(String), option_help : Hash(String, String), command_parts : Array(String)) : String
Source
create_section(cmd_name : String, param_tree : CommandParams, option_help : Hash(String, String), command_parts : Array(String) = [] of 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