Sha256: 424ee84d3914be8e85646f1c05f5602cd64553b4d726e13a48f7219535e90335

Contents?: true

Size: 364 Bytes

Versions: 90

Compression:

Stored size: 364 Bytes

Contents

require '__app__'

module __App__
  module Commands
    class Example < __App__::Command
      def call(_args, _name)
        puts 'neato'

        if rand < 0.05
          raise(CLI::Kit::Abort, "you got unlucky!")
        end
      end

      def self.help
        "A dummy command.\nUsage: {{command:#{__App__::TOOL_NAME} example}}"
      end
    end
  end
end

Version data entries

90 entries across 90 versions & 2 rubygems

Version Path
shopify-cli-2.20.0 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.19.0 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.18.1 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.18.0 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.17.0 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.16.1 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.16.0 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.15.6 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.15.5 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.15.4 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.15.3 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.15.2 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.15.1 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.15.0 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.14.0 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.13.0 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.12.0 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.11.2 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.11.1 vendor/gen/template/lib/__app__/commands/example.rb
shopify-cli-2.11.0 vendor/gen/template/lib/__app__/commands/example.rb