cli: create an --advanced layout

[skip ci]

Needs to be documented (new page?) and needs to be updated for unit tests.
This commit is contained in:
Andy Meneely
2017-10-09 15:16:58 -04:00
parent 498a8224e7
commit 1d4de1e2ad
21 changed files with 406 additions and 30 deletions
+1 -24
View File
@@ -2,27 +2,4 @@
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
Squib::CLI.new.run