Skip to content

Commit

Permalink
Merge pull request #626 from apiaryio/honzajavorek/report-os
Browse files Browse the repository at this point in the history
Report OS type and version in dredd --version
  • Loading branch information
honzajavorek committed Sep 12, 2016
2 parents 8c909a8 + 99d6ab0 commit c606717
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dredd-command.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ path = require 'path'
optimist = require 'optimist'
console = require 'console'
fs = require 'fs'
os = require 'os'
spawnArgs = require 'spawn-args'
{spawn} = require('child_process')

Expand Down Expand Up @@ -177,7 +178,10 @@ class DreddCommand

# show version
else if @argv.version is true
console.log("#{packageData.name} v#{packageData.version}")
console.log("""\
#{packageData.name} v#{packageData.version} \
(#{os.type()} #{os.release()}; #{os.arch()})
""")
return @_processExit(0)

loadDreddFile: ->
Expand Down

0 comments on commit c606717

Please sign in to comment.