Sha256: 612885792a5f0f611161ea5faa75b0d3a88d5308152a1124d70e3bc52db991a3
Contents?: true
Size: 734 Bytes
Versions: 2
Compression:
Stored size: 734 Bytes
Contents
#!/usr/bin/env ruby STDOUT.sync = true $LOAD_PATH.unshift File.join(File.dirname(__FILE__), *%w(.. lib)) trap("SIGINT") { exit! } require 'genebrand' require 'mercenary' Mercenary.program(:genebrand) do |p| p.version Genebrand::VERSION p.description 'Genebrand is a small brands generator' p.syntax 'genebrand <subcommand> [options]' p.action do |args, _options| if args.empty? Genebrand::Logger.error 'A subcommand is required. Use --help for more information' abort else unless p.has_command?(args.first) Genebrand::Logger.hint 'Invalid command. Use --help for more information' abort end end end Genebrand::Command.subclasses.each { |c| c.load_command(p) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
genebrand-0.1.1 | exe/genebrand |
genebrand-0.1.0 | exe/genebrand |