Sha256: 3efbf470bad6b680eb5103043ad433a18a4913c501484bcf4fa16477bd6d02fe
Contents?: true
Size: 416 Bytes
Versions: 92
Compression:
Stored size: 416 Bytes
Contents
require '__app__' module __App__ module Commands Registry = CLI::Kit::CommandRegistry.new( default: 'help', contextual_resolver: nil ) def self.register(const, cmd, path) autoload(const, path) Registry.add(->() { const_get(const) }, cmd) end register :Example, 'example', '__app__/commands/example' register :Help, 'help', '__app__/commands/help' end end
Version data entries
92 entries across 92 versions & 2 rubygems