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