Sha256: 86511a01068319aafeff08430cce2595e3559559ab766d2f3b37b1642d0255ef
Contents?: true
Size: 484 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cli-kit-4.0.0 | gen/lib/gen/commands/help.rb |