Sha256: acdaa1f0f446a5f9328385c55ba5c740b51deac6e1af0e0911802a16e9b52592
Contents?: true
Size: 508 Bytes
Versions: 5
Compression:
Stored size: 508 Bytes
Contents
require "gorails" module Gorails module Commands class Help < Gorails::Command def call(args, _name) puts CLI::UI.fmt("{{bold:Available commands}}") puts "" Gorails::Commands::Registry.resolved_commands.each do |name, klass| next if name == "help" puts CLI::UI.fmt("{{command:#{Gorails::TOOL_NAME} #{name}}}") if (help = klass.help) puts CLI::UI.fmt(help) end puts "" end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems