Class: Toys::CLI::DefaultCompletion

Inherits:
Toys::Completion::Base show all
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

Instance Method Details

#call(context) ⇒ Array<Toys::Completion::Candidate>

Returns candidates for the current completion.

Parameters:

Returns:



649
650
651
# File 'lib/toys/cli.rb', line 649

def call(context)
  context.tool.completion.call(context)
end