Comparing version 1.14.0 to 1.14.1
@@ -251,9 +251,4 @@ #!/usr/bin/env node | ||
if (argv.verbose && row.value.message) { | ||
var lines = row.value.message.split('\n'); | ||
console.log(); | ||
lines.forEach(function (line) { | ||
console.log(' ' + line); | ||
}); | ||
console.log(); | ||
if (argv.verbose) { | ||
printMessage(row.value.message) | ||
} | ||
@@ -383,2 +378,5 @@ })); | ||
printEntry(row.key, start, end, elapsed, row.value.type, row.value.archive); | ||
if(argv.verbose) { | ||
printMessage(row.value.message) | ||
} | ||
@@ -572,13 +570,24 @@ sumsByType[row.value.type] ? sumsByType[row.value.type] += elapsed : sumsByType[row.value.type] = elapsed; | ||
function printDate(date) { | ||
var monthNames = [ | ||
"January", "February", "March", | ||
"April", "May", "June", "July", | ||
"August", "September", "October", | ||
"November", "December" | ||
]; | ||
function printDate (date) { | ||
var monthNames = [ | ||
"January", "February", "March", | ||
"April", "May", "June", "July", | ||
"August", "September", "October", | ||
"November", "December" | ||
]; | ||
return date.getDate() + ' ' + monthNames[date.getMonth()] + ' ' + date.getFullYear(); | ||
return date.getDate() + ' ' + monthNames[date.getMonth()] + ' ' + date.getFullYear(); | ||
} | ||
function printMessage (message) { | ||
if (message) { | ||
var lines = message.split('\n'); | ||
console.log(); | ||
lines.forEach(function (line) { | ||
console.log(' ' + line); | ||
}); | ||
console.log(); | ||
} | ||
} | ||
function addData (obj) { | ||
@@ -585,0 +594,0 @@ var data = minimist(argv['--']); |
@@ -27,4 +27,5 @@ usage: | ||
clocker report {--reportDay DATE} | ||
clocker report {-v, --reportDay DATE} | ||
Show all logged hours of a specific day. | ||
In verbose mode (-v), also show clocked messages. | ||
If no --reportDay is set, the current day will be used. | ||
@@ -31,0 +32,0 @@ |
{ | ||
"name": "clocker", | ||
"version": "1.14.0", | ||
"version": "1.14.1", | ||
"description": "track project hours", | ||
@@ -5,0 +5,0 @@ "bin": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25544
540
165