class Dmcli::CLI
CLI
Command-line options and commands are set in the CLI
class
Public Instance Methods
monsters()
click to toggle source
# File lib/dmcli/cli.rb, line 27 def monsters puts "Not implemented" end
package()
click to toggle source
# File lib/dmcli/cli.rb, line 34 def package xml = XmlExporter.new output = options.output? ? options.output : "output.xml" filepath = options.filepath? ? options.filepath : "." xml.builder(filepath, output) end
spells()
click to toggle source
# File lib/dmcli/cli.rb, line 15 def spells caster = options.caster? ? options.caster : "any" level = options.level? ? options.level : "any" @filepath = options.filepath? ? options.filepath : "." loader = DndDataLoader.new puts loader.load_spells(@filepath, "BECMI", caster, level) end
version()
click to toggle source
# File lib/dmcli/cli.rb, line 43 def version puts "dmcli version #{VERSION}" end