Sha256: 7c9fbdbd703502f4b2cde88eb1149e04af3964e766bff92703d386003227bf42
Contents?: true
Size: 782 Bytes
Versions: 4
Compression:
Stored size: 782 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require "optparse" require "wizard" options = {} OptionParser.new do |opts| opts.banner = "Usage: TODO" opts.on("-m", "--model MODEL", String, "Target model") do |model| options[:model] = model end opts.on("-a", "--actions ACTIONS", Array, "Actions") do |actions| options[:actions] = actions end opts.on("-o", "--only CONCEPTS", Array, "Only these concepts") do |concepts| options[:only] = concepts end opts.on("-x", "--except CONCEPTS", Array, "Except these concepts") do |concepts| options[:except] = concepts end opts.on("-c", "--context CONTEXT", String, "Only these concepts") do |context| options[:context] = context end end.parse! Wizard.generate options[:model], **options
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
trailblazer-wizard-0.0.5 | bin/wizard |
trailblazer-wizard-0.0.4 | bin/wizard |
trailblazer-wizard-0.0.3 | bin/wizard |
trailblazer-wizard-0.0.2 | bin/wizard |