Permalink
Browse files

chime now prints the time - issue #1

  • Loading branch information...
pmuellr committed Jan 10, 2012
1 parent 919ed50 commit 5ef5c8e8bbd2ec2236b170e11646850f59e00b1b
Showing with 10 additions and 4 deletions.
  1. +1 −1 .wr
  2. +9 −3 lib/command.coffee
View
2 .wr
@@ -14,7 +14,7 @@
# command to run
#-----------------------------------------------------
-make test
+make install
#-----------------------------------------------------
# directories to watch
View
@@ -119,7 +119,9 @@ getVersion = () ->
#---------------------------------------------------------------------------
logError = (message) ->
- message = "wr: #{message}"
+ date = new Date()
+ time = date.toLocaleTimeString()
+ message = "#{time} wr: #{message}"
charm
.push(true)
.display('bright')
@@ -132,7 +134,9 @@ logError = (message) ->
#---------------------------------------------------------------------------
logSuccess = (message) ->
- message = "wr: #{message}"
+ date = new Date()
+ time = date.toLocaleTimeString()
+ message = "#{time} wr: #{message}"
charm
.push(true)
.display('bright')
@@ -145,7 +149,9 @@ logSuccess = (message) ->
#---------------------------------------------------------------------------
logInfo = (message) ->
- message = "wr: #{message}"
+ date = new Date()
+ time = date.toLocaleTimeString()
+ message = "#{time} wr: #{message}"
charm
.push(true)
.display('bright')

0 comments on commit 5ef5c8e

Please sign in to comment.