Sha256: e7588c9925b6c606844c3cdff7833e728131199b82a91f8510a477566619e673

Contents?: true

Size: 506 Bytes

Versions: 93

Compression:

Stored size: 506 Bytes

Contents

require '__app__'

module __App__
  module Commands
    class Help < __App__::Command
      def call(args, _name)
        puts CLI::UI.fmt("{{bold:Available commands}}")
        puts ""

        __App__::Commands::Registry.resolved_commands.each do |name, klass|
          next if name == 'help'
          puts CLI::UI.fmt("{{command:#{__App__::TOOL_NAME} #{name}}}")
          if help = klass.help
            puts CLI::UI.fmt(help)
          end
          puts ""
        end
      end
    end
  end
end

Version data entries

93 entries across 93 versions & 2 rubygems

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