Sha256: 275c4b68477b6f38a85934783849563c34963a62723387b7710bf18b1241c71c
Contents?: true
Size: 366 Bytes
Versions: 1
Compression:
Stored size: 366 Bytes
Contents
module Codeguard module CLI AVAILABLE_OPTIONS = %w(install help diff) module_function def run(*args) command = args.shift unless AVAILABLE_OPTIONS.include?(command) puts "Invalid option: #{command}" command = :help end Codeguard.send(command || :help, *args) end end # module CLI end # module Codeguard
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codeguard-0.1.0 | lib/codeguard/cli.rb |