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:



581
582
583
# File 'lib/toys/cli.rb', line 581

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