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_classClass The command class to complete.
-
parameter
argumentsArray(String) The application arguments.
-
parameter
environmentHash 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