Sha256: 007eaa346baff49e1bb29e7974579542490ca965ab1a19f49b915ffe2f578777
Contents?: true
Size: 656 Bytes
Versions: 2
Compression:
Stored size: 656 Bytes
Contents
#!/usr/bin/env ruby libdir = File.expand_path(File.dirname(__FILE__)) require "#{libdir}/../lib/sfp" # application mode if ARGV.length > 1 and ARGV[0] == '-p' home_dir = File.expand_path(File.dirname(ARGV[1])) parser = Sfp::Parser.new({:home_dir => home_dir}) parser.parse(File.read(ARGV[1])) puts parser.to_json({:pretty => true}) elsif ARGV.length > 0 planner = Sfp::Planner.new #puts planner.solve_file(ARGV[0], true) puts planner.solve({:file => ARGV[0], :pretty_json => true}) else puts "Usage: #{$0} [options] <sfp-file> options: <none> parse file and solve the planning task -p parse file and print it in JSON format " end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sfp-0.1.1 | bin/sfp |
sfp-0.1.0 | bin/sfp |