Docopt::ZshCompletion
Inherits Reference < Object
Constructors
new(doc : String, custom_completions : Hash(String, String) = {} of String => String)
SourceInstance methods
ameba:disable Metrics/CyclomaticComplexity
create_argument_completions(arguments : Array(String), custom_name : String) : Array(String)
Sourcecreate_command_args(subcommands : Hash(String, CommandParams)) : Array(String)
Sourcecreate_completion_function(cmd_name : String, param_tree : CommandParams, option_help : Hash(String, String), function_name : String | Nil = nil, command_parts : Array(String) = [] of String) : String
Sourcecreate_function_body(cmd_name : String, param_tree : CommandParams, option_help : Hash(String, String), command_parts : Array(String), indent : Int32 = 0) : String
Sourcecreate_option_args(options : Array(String), option_help : Hash(String, String)) : Array(String)
Sourcecreate_state_machine(cmd_name : String, param_tree : CommandParams, option_help : Hash(String, String), function_name : String) : String
Sourceget_completion_file_content(cmd : String, param_tree : CommandParams, option_help : Hash(String, String)) : String
Sourceget_completion_filepath(cmd : String) : String
Sourceget_completion_path
Sourceparse_params
Sourcesanitize_name(name : String) : String
Source