Sha256: f60fb0a0ebdfa74bcd35c118a62b4e1e746f60c1f4bb3e21a97abb2c4bd788ec

Contents?: true

Size: 553 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
brief-1.2.0 lib/brief/cli/change.rb
brief-1.1.0 lib/brief/cli/change.rb
brief-1.0.0 lib/brief/cli/change.rb