Sha256: 79a03ea6e89f403640a88f2a112e917355b2794808bc11f2a6d1a3442aad5919
Contents?: true
Size: 770 Bytes
Versions: 26
Compression:
Stored size: 770 Bytes
Contents
module Simple; end module Simple::CLI; end require_relative "cli/pp" require_relative "cli/helpers" require_relative "cli/runner" require_relative "cli/adapter" require_relative "cli/logger" module Simple::CLI extend ::Simple::CLI::Logger def self.included(base) base.extend(::Simple::CLI::Adapter) base.include(::Simple::CLI::Helpers) end # Simple::CLI.run! is called from Runner.run. It is called with a method # name, which is derived from the command passed in via the command line, # and parsed arguments. # # The default implementation just calls the respective method on self. # Implementations might override this method to provide some before/after # functionality. def run!(command, *args) send(command, *args) end end
Version data entries
26 entries across 26 versions & 1 rubygems