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

Version Path
shopify-cli-1.4.1 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.4.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.3.1 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.3.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.2.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.1.2 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.1.1 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.1.0 vendor/gen/template/lib/__app__/commands.rb
cli-kit-3.3.0 gen/template/lib/__app__/commands.rb
cli-kit-3.1.0 gen/template/lib/__app__/commands.rb
cli-kit-3.0.1 gen/template/lib/__app__/commands.rb
cli-kit-3.0.0 gen/template/lib/__app__/commands.rb