116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
# File 'lib/transcriptic/cli.rb', line 116
def analyze(object_path)
raw = options.raw ? "--raw" : ""
iterations = options.iterations ? options.iterations : 5
require_labfile!
update
Transcriptic::SBT.stage
data = `target/start #{object_path} --verify #{raw} --iterations #{iterations}`
if not options.raw
json = json_decode(data)
output_with_arrow "Verification successful for #{object_path}"
output_with_indent "Expected cost: $#{json["price_avg"]}, maximum observed cost: $#{json["price_max"]}"
else
say data
end
end
|