SamovarSourceSamovarCompletion

module Completion

Shell completion support for Samovar commands.

Nested

Definitions

def self.complete(command_class, arguments, environment: ENV)

Complete the command line for the given command class.

Signature

parameter command_class Class

The command class to complete.

parameter arguments Array(String)

The application arguments.

parameter environment Hash

The environment for completion callbacks.

returns Result

The completion result.

Implementation

def self.complete(command_class, arguments, environment: ENV)
	Context.for(command_class, arguments, environment: environment).complete
end