Sha256: e2ba06e59d4651f5d9759b0b4a60dd4fd3f9e340bb3cc40d8567f6fc1849b0bb
Contents?: true
Size: 484 Bytes
Versions: 87
Compression:
Stored size: 484 Bytes
Contents
require 'gen' module Gen module Commands class Help < Gen::Command def call(_args, _name) puts CLI::UI.fmt("{{bold:Available commands}}") puts "" Gen::Commands::Registry.resolved_commands.each do |name, klass| puts CLI::UI.fmt("{{command:#{Gen::TOOL_NAME} #{name}}}") if klass.respond_to?(:help) && (help = klass.help) puts CLI::UI.fmt(help) end puts "" end end end end end
Version data entries
87 entries across 87 versions & 1 rubygems