379 380 381 382 383 384 385 386
# File 'lib/inspec/cli.rb', line 379 def version if config["format"] == "json" v = { version: Inspec::VERSION } puts v.to_json else puts Inspec::VERSION end end