Sha256: c52198bd22fde8a1a3c0ef9d3c4536823bdd8880770ec64d18d96c2d2f1fa11a
Contents?: true
Size: 481 Bytes
Versions: 23
Compression:
Stored size: 481 Bytes
Contents
require 'travis/cli' module Travis module CLI class Help < Command def run(command = nil) if command say CLI.command(command).new.help else say "Usage: #$0 COMMAND ...\n\nAvailable commands:\n\n" commands.each { |c| say "\t#{c.command_name}" } say "\nrun `#$0 help COMMAND` for more infos" end end def commands CLI.commands.sort_by { |c| c.command_name } end end end end
Version data entries
23 entries across 23 versions & 1 rubygems