You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
683 B
28 lines
683 B
#!/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 |
|
|
|
p.command(:make_sprue) do |c| |
|
c.syntax 'make_sprue' |
|
c.description 'Creates a sprue definition file.' |
|
|
|
c.action do |args, options| |
|
Squib::Commands::MakeSprue.new.process(args) |
|
end |
|
end |
|
|
|
end
|
|
|