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