Sha256: 743eaa616cf74a168e73dcb0123f64a074fd426e7a7269f8a73589368a8bdfba
Contents?: true
Size: 589 Bytes
Versions: 3
Compression:
Stored size: 589 Bytes
Contents
#!/usr/bin/env ruby $: << File.expand_path('lib') require 'cl' class Add < Cl::Cmd register :add opt '--notifications', 'Send out notifications to the team', negate: %w(skip) def run p notifications? end end Cl.new('owners').run(%w(add --notifications)) # Output: # # true Cl.new('owners').run(%w(add --no_notifications)) # Output: # # false Cl.new('owners').run(%w(add --no-notifications)) # Output: # # false Cl.new('owners').run(%w(add --skip_notifications)) # Output: # # false Cl.new('owners').run(%w(add --skip-notifications)) # Output: # # false
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
travis-cl-1.2.4 | examples/readme/negate |
cl-1.2.4 | examples/readme/negate |
cl-1.2.3 | examples/readme/negate |