class Athena::Console::Completion::Suggestions

Overview

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

Defined in:

completion/suggestions.cr

Instance Method Summary

Instance Method Detail

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

Adds the provided option to #suggested_options.


[View source]
def suggest_options(options : Enumerable(ACON::Input::Option)) : self #

Adds each of the provided options to #suggested_options.


[View source]
def suggest_value(value : String, description : String = "") : self #

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


[View source]
def suggest_value(value : ACON::Completion::Suggestions::SuggestedValue) : self #

Adds the provided value to #suggested_values.


[View source]
def suggest_values(values : Enumerable(String)) : self #

Adds each of the provided values to #suggested_values.


[View source]
def suggest_values(*values : String) : self #

Adds each of the provided values to #suggested_values.


[View source]
def suggested_options : Array(Athena::Console::Input::Option) #

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


[View source]

[View source]