Class: Toys::CLI::DefaultCompletion

Inherits:
Toys::Completion::Base show all
Defined in:
toys-core/lib/toys/cli.rb

Overview

Defined in the toys-core gem

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:



655
656
657
# File 'toys-core/lib/toys/cli.rb', line 655

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