Class: Toys::CLI::DefaultCompletion
- Inherits:
-
Toys::Completion::Base
- Object
- Toys::Completion::Base
- Toys::CLI::DefaultCompletion
- Defined in:
- lib/toys/cli.rb
Overview
A Completion that implements the default algorithm for a CLI. This algorithm simply determines the tool and uses its completion.
Instance Method Summary collapse
-
#call(context) ⇒ Array<Toys::Completion::Candidate>
Returns candidates for the current completion.
Instance Method Details
#call(context) ⇒ Array<Toys::Completion::Candidate>
Returns candidates for the current completion.
581 582 583 |
# File 'lib/toys/cli.rb', line 581 def call(context) context.tool.completion.call(context) end |