Sha256: 8c6a3c8a4d8043343ec33bd54e6cf4533e34eba2c551793e76204d293eb1de0c

Contents?: true

Size: 672 Bytes

Versions: 6

Compression:

Stored size: 672 Bytes

Contents

require "clamp"
require "batcave/namespace"
require "batcave/action/add"
require "batcave/dsl"
require "batcave/store"
require "fileutils"

# TODO(sissel): Need to track what we've added so we can sync later.

class BatCave::Command::Add < Clamp::Command

  # TODO(sissel): Move this to the 'thing' DSL
  option ["-n", "--name"], "NAME",
    "the application or library name", :attribute_name => :name

  parameter "THING",
    "The thing to add to your batcave", :attribute_name => :thing

  parameter "[THINGARGS] ...", "arguments to pass to the thing", :attribute_name => :args

  def execute
    BatCave::Action::Add.new(@thing, @args).execute
  end # def execute
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
batcave-0.0.11 lib/batcave/command/add.rb
batcave-0.0.9 lib/batcave/command/add.rb
batcave-0.0.7 lib/batcave/command/add.rb
batcave-0.0.6 lib/batcave/command/add.rb
batcave-0.0.5 lib/batcave/command/add.rb
batcave-0.0.4 lib/batcave/command/add.rb