Sha256: a6a423fee075f7af649be0ef8feba8f1983a42f605a827706937190db88e3c63
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 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 help = klass.help puts CLI::UI.fmt(help) end puts "" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cli-kit-3.0.0 | gen/lib/gen/commands/help.rb |