Skip to content

class Athena::Console::Completion::Suggestions
inherits Reference #

Stores all the suggested values/options for the current ACON::Completion::Input.

Methods#

#suggest_option(option : ACON::Input::Option) : self#

Adds the provided option to #suggested_options.

View source

#suggest_options(options : Enumerable(ACON::Input::Option)) : self#

Adds each of the provided options to #suggested_options.

View source

#suggest_value(value : String, description : String = "") : self#

Adds the provided value, and optional description to #suggested_values.

View source

#suggest_value(value : ACON::Completion::Suggestions::SuggestedValue) : self#

Adds the provided value to #suggested_values.

View source

#suggest_values(values : Enumerable(String)) : self#

Adds each of the provided values to #suggested_values.

View source

#suggest_values(*values : String) : self#

Adds each of the provided values to #suggested_values.

View source

#suggested_options#

Returns an array of the suggested ACON::Input::Options.

View source

#suggested_values#

View source