Sha256: 535028268ee91c220cbc1bd0dfb53613e242edd7def085d2aefc46f159cde81e

Contents?: true

Size: 553 Bytes

Versions: 22

Compression:

Stored size: 553 Bytes

Contents

command 'change' do |c|
  c.syntax = 'brief change ATTRIBUTE [OPTIONS]'
  c.description = 'change attributes of brief documents'

  c.option '--from', String, 'Only apply when the attributes current value matches.'
  c.option '--to', String, 'Only apply when the attributes current value matches.'
  c.option '--files', String, 'The files you want to change'
  c.option '--on', String, 'alias for --files. The files you want to change'

  c.action do |args, options|
    puts "Args: #{ args.inspect }"
    puts "Options: #{ options.inspect }"
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
brief-1.8.6 lib/brief/cli/change.rb
brief-1.8.5 lib/brief/cli/change.rb
brief-1.8.4 lib/brief/cli/change.rb
brief-1.8.3 lib/brief/cli/change.rb
brief-1.8.2 lib/brief/cli/change.rb
brief-1.8.1 lib/brief/cli/change.rb
brief-1.8.0 lib/brief/cli/change.rb
brief-1.7.3 lib/brief/cli/change.rb
brief-1.7.2 lib/brief/cli/change.rb
brief-1.7.1 lib/brief/cli/change.rb
brief-1.7.0 lib/brief/cli/change.rb
brief-1.6.1 lib/brief/cli/change.rb
brief-1.6.0 lib/brief/cli/change.rb
brief-1.5.2 lib/brief/cli/change.rb
brief-1.5.1 lib/brief/cli/change.rb
brief-1.5.0 lib/brief/cli/change.rb
brief-1.4.4 lib/brief/cli/change.rb
brief-1.4.2 lib/brief/cli/change.rb
brief-1.4.1 lib/brief/cli/change.rb
brief-1.3.2 lib/brief/cli/change.rb