Putting together a basic squib new command

This commit is contained in:
Andy Meneely
2014-07-20 00:17:05 -04:00
parent a6eed0ad3d
commit b64e88ed0e
11 changed files with 78 additions and 13 deletions
+17
View File
@@ -1,2 +1,19 @@
#!/usr/bin/env ruby
require 'squib'
require 'mercenary'
Mercenary.program(:squib) do |p|
p.version Squib::VERSION
p.description "A Ruby DSL for prototyping card games"
p.syntax "squib <subcommand> [options]"
p.command(:new) do |c|
c.syntax "new PATH"
c.description "Creates a new Squib project scaffolding in PATH. Must be a new directory or already empty."
c.action do |args, options|
Squib::Commands::New.new.process(args)
end
end
end