Sha256: 879e52e86dd3961fd1565fe50ecd95cd0c99142dbaf4a764353bb7c5deec0df5

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

require_relative '../../commando'

module Commando
  module Action
    # Action that prints out all available commands
    module Help
      def self.perform(args:, output: $stdout)
        output.puts "Valid commands are"
        Commando.config.each_action do |command, description|
          output.puts "  * #{command} - #{description}"
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tcollier-commando-0.1.0 lib/commando/action/help.rb