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-2.2.2 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.2.1 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.2.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.1.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.0.2 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.0.1 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.0.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.14.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.13.1 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.13.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.12.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.11.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.10.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.9.1 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.9.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.8.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.7.1 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.7.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.6.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-1.5.0 vendor/gen/template/lib/__app__/commands.rb