Sha256: d3d9ad12ae6ff390a3322404d17e732d51671b8f3cde3838c73c52e8463cebad
Contents?: true
Size: 589 Bytes
Versions: 4
Compression:
Stored size: 589 Bytes
Contents
command :workflow do |c| c.workflow :all c.maybe_repo c.desc "Sets the workflow amp uses for commands" c.opt :local, "Sets the workflow locally, instead of globally", :short => "-l" c.before do |opts, args| if args.size < 1 puts "Usage: amp workflow workflow_name" c.break end true end c.on_run do |opts, args| config = opts[:global_config] unless opts[:local] while config.parent_config config = config.parent_config end end config["amp"]["workflow"] = args.shift config.save! end end
Version data entries
4 entries across 4 versions & 2 rubygems