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-1.5.0 vendor/gen/template/lib/__app__/commands/help.rb
shopify-cli-1.4.1 vendor/gen/template/lib/__app__/commands/help.rb
shopify-cli-1.4.0 vendor/gen/template/lib/__app__/commands/help.rb
shopify-cli-1.3.1 vendor/gen/template/lib/__app__/commands/help.rb
shopify-cli-1.3.0 vendor/gen/template/lib/__app__/commands/help.rb
shopify-cli-1.2.0 vendor/gen/template/lib/__app__/commands/help.rb
shopify-cli-1.1.2 vendor/gen/template/lib/__app__/commands/help.rb
shopify-cli-1.1.1 vendor/gen/template/lib/__app__/commands/help.rb
shopify-cli-1.1.0 vendor/gen/template/lib/__app__/commands/help.rb
cli-kit-3.3.0 gen/template/lib/__app__/commands/help.rb
cli-kit-3.1.0 gen/template/lib/__app__/commands/help.rb
cli-kit-3.0.1 gen/template/lib/__app__/commands/help.rb
cli-kit-3.0.0 gen/template/lib/__app__/commands/help.rb