bin/yq in yq-0.0.1 vs bin/yq in yq-0.0.2
- old
+ new
@@ -41,12 +41,14 @@
]
required_vars.each do |v|
raise "#{v} must be specified in the environment variables" unless ENV[v]
end
+ raise "jq not installed" unless Yq.which('jq')
end
+
def start
begin
@yaml = $stdin.read
puts Yq.search_yaml(ARGV[0], @yaml)
@@ -64,10 +66,9 @@
def develop
require 'pry'
LOGGER.level = Logger::DEBUG
LOGGER.info "Develop mode"
start
- binding.pry
end
def main_loop
start
end