Sha256: d3dfbbc166fc780c0ccc36fb5b73067a11b7f0f6a78730e344e3b2e5fc5c4dfa
Contents?: true
Size: 384 Bytes
Versions: 92
Compression:
Stored size: 384 Bytes
Contents
require 'gen' module Gen 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 :Help, 'help', 'gen/commands/help' register :New, 'new', 'gen/commands/new' end end
Version data entries
92 entries across 92 versions & 2 rubygems