module Samovar::Completion
Shell completion support for Samovar commands.
Public Class Methods
# File vendor/bundle/ruby/4.0.0/gems/samovar-2.5.1/lib/samovar/completion.rb, line 20 def self.complete(command_class, arguments, environment: ENV) Context.for(command_class, arguments, environment: environment).complete end
Complete the command line for the given command class.
@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.