Sha256: 0f3eb53502736fe0ac885daf2281171f13be113acd372e92d867a7b7d5c21cde
Contents?: true
Size: 1012 Bytes
Versions: 3
Compression:
Stored size: 1012 Bytes
Contents
#!/usr/bin/env ruby require 'hitcher' require 'colorize' require_relative '../lib/hitcher/global' # # Hitcher run # global = Hitcher::Global.instance cs = File.join(Dir.getwd, global.config.spec_filename) if File.exist?(cs) cli = Hitcher::Cli.new inst = cli.parse(cs) if ARGV.length > 0 cmd = ARGV[0] case cmd when "run","r" cli.run(inst) when "run_prompt","rp" cli.run_prompt(inst) when "run_new_prompt", "rnp" cli.run_new_prompt(inst) when "gen", "g", "generate", "gs", "gen_script" cli.generate_scripts(inst) when "-v" STDOUT.puts "Hitcher version #{Hitcher::VERSION}" else STDERR.puts "Unsupported command '#{cmd}'".red exit(-1) end else STDOUT.puts "Hitcher version #{Hitcher::VERSION}" STDOUT.puts "> Hitcher < run | r | run_prompt | rp | run_new_prompt | rnp >" exit(-1) end else STDERR.puts "cspec not found. Please provide one at #{Dir.getwd} or pass in as parameter" exit(-1) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
Hitcher-0.1.3 | exe/hitcher |
Hitcher-0.1.2 | exe/hitcher |
Hitcher-0.1.1 | exe/hitcher |