Sha256: 5153839c9d72b8b8eba35304a89631a670eedc3f26cb68d7526ee075369c2961

Contents?: true

Size: 774 Bytes

Versions: 92

Compression:

Stored size: 774 Bytes

Contents

require 'cli/ui'
require 'cli/kit'

CLI::UI::StdoutRouter.enable

module __App__
  extend CLI::Kit::Autocall

  TOOL_NAME = '__app__'
  ROOT      = File.expand_path('../..', __FILE__)
  LOG_FILE  = '/tmp/__app__.log'

  autoload(:EntryPoint, '__app__/entry_point')
  autoload(:Commands,   '__app__/commands')

  autocall(:Config)  { CLI::Kit::Config.new(tool_name: TOOL_NAME) }
  autocall(:Command) { CLI::Kit::BaseCommand }

  autocall(:Executor) { CLI::Kit::Executor.new(log_file: LOG_FILE) }
  autocall(:Resolver) do
    CLI::Kit::Resolver.new(
      tool_name: TOOL_NAME,
      command_registry: __App__::Commands::Registry
    )
  end

  autocall(:ErrorHandler) do
    CLI::Kit::ErrorHandler.new(
      log_file: LOG_FILE,
      exception_reporter: nil
    )
  end
end

Version data entries

92 entries across 92 versions & 2 rubygems

Version Path
shopify-cli-2.36.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.35.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.34.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.33.1 vendor/gen/template/lib/__app__.rb
shopify-cli-2.33.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.32.1 vendor/gen/template/lib/__app__.rb
shopify-cli-2.32.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.31.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.30.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.29.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.28.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.27.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.26.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.25.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.24.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.23.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.22.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.21.0 vendor/gen/template/lib/__app__.rb
shopify-cli-2.20.1 vendor/gen/template/lib/__app__.rb
shopify-cli-2.20.0 vendor/gen/template/lib/__app__.rb