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.36.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.35.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.34.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.33.1 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.33.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.32.1 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.32.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.31.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.30.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.29.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.28.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.27.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.26.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.25.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.24.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.23.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.22.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.21.0 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.20.1 vendor/gen/template/lib/__app__/commands.rb
shopify-cli-2.20.0 vendor/gen/template/lib/__app__/commands.rb