Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clocker

Package Overview
Dependencies
Maintainers
3
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clocker - npm Package Compare versions

Comparing version 1.17.0 to 1.17.1

44

bin/index.js

@@ -16,14 +16,13 @@ #!/usr/bin/env node

var HOME = process.env.HOME || process.env.USERPROFILE
var defaultDataDir = path.join(HOME, '.clocker')
var argvs = splitArgvs(process.argv)
program
.name('clocker')
.version(require('../package.json').version)
.description('track project hours')
.option('-d, --datadir <path>', 'directory for storage', defaultDataDir)
// Show info on unknown command
program.on('command:*', function () {
console.error('Invalid command: %s\nSee --help for a list of available commands.', argvs[0].slice(2).join(' '))
process.exit(1)
})
// Adjust help output for set command

@@ -41,2 +40,7 @@ // as it has two optional arguments,

var datadir
program.on('option:datadir', function (value) {
datadir = value
})
program

@@ -46,3 +50,2 @@ .command('start')

.description('start the clock')
.option('-d, --datadir <path>')
.option('-t, --type <value>')

@@ -55,3 +58,2 @@ .option('-m, --message <value>')

.description('stop the clock')
.option('-d, --datadir <path>')
.option('-t, --type <value>', 'use latest of type instead of stamp')

@@ -64,3 +66,2 @@ .option('-m, --message <value>')

.description('restart the clock')
.option('-d, --datadir <path>')
.action(restart)

@@ -71,3 +72,2 @@

.description('show the elapsed time')
.option('-d, --datadir <path>')
.action(status)

@@ -78,3 +78,2 @@

.description('generate invoicer-compatible json output')
.option('-d, --datadir <path>')
.option('--filter <key=value>', 'filter by key, value as string or /regex/', collect, [])

@@ -92,3 +91,2 @@ .option('-t, --type <value>', 'short for --filter "type=<value>"')

.description('show data entries')
.option('-d, --datadir <path>')
.option('-v, --verbose', 'also show clocked messages')

@@ -105,3 +103,2 @@ .option('--filter <key=value>', 'filter by key, value as string or /regex/', collect, [])

.description('show all logged hours of a specific day')
.option('-d, --datadir <path>')
.option('-v, --verbose', 'also show clocked messages')

@@ -115,3 +112,2 @@ .option('--reportDay <value>', 'day to use')

.description('generate CSV output')
.option('-d, --datadir <path>')
.option('--filter <key=value>', 'filter by key, value as string or /regex/', collect, [])

@@ -128,3 +124,2 @@ .option('-t, --type <value>', 'short for --filter "type=<value>"')

.description('add an entry')
.option('-d, --datadir <path>')
.option('-t, --type <value>')

@@ -137,3 +132,2 @@ .option('-m, --message <value>')

.description('get the raw data')
.option('-d, --datadir <path>')
.action(get)

@@ -145,3 +139,2 @@

.description('remove an entry')
.option('-d, --datadir <path>')
.action(remove)

@@ -153,3 +146,2 @@

.description('adjust time stamp boundaries or other properties')
.option('-d, --datadir <path>')
.action(set)

@@ -160,3 +152,2 @@

.description('launch $EDITOR to edit the record')
.option('-d, --datadir <path>')
.action(edit)

@@ -169,3 +160,2 @@

.description('move an entry to a new start')
.option('-d, --datadir <path>')
.action(move)

@@ -176,3 +166,2 @@

.description('archive a range or filtered set of clocked records or a specific stamp')
.option('-d, --datadir <path>')
.option('--filter <key=value>', 'filter by key, value as string or /regex/', collect, [])

@@ -187,3 +176,2 @@ .option('-t, --type <value>', 'short for --filter "type=<value>"')

.description('unarchive a range of clocked records or a specific stamp')
.option('-d, --datadir <path>')
.option('--gt <date>', 'unarchive dates from gt on')

@@ -568,3 +556,3 @@ .option('--lt <date>', 'unarchive dates upto')

return new Clocker({
dir: dir(cmd)
dir: datadir
})

@@ -617,12 +605,2 @@ }

function dir (cmd) {
if (cmd.datadir) {
return cmd.datadir
}
var HOME = process.env.HOME || process.env.USERPROFILE
var defaultDataDir = path.join(HOME, '.clocker')
return defaultDataDir
}
function each (arr, cb, cbEnd) {

@@ -629,0 +607,0 @@ if (arr.length === 0) {

{
"name": "clocker",
"version": "1.17.0",
"version": "1.17.1",
"description": "track project hours",

@@ -12,3 +12,3 @@ "bin": {

"dependencies": {
"commander": "^2.18.0",
"commander": "^5.0.0",
"editor": "^0.1.0",

@@ -15,0 +15,0 @@ "json-stable-stringify": "^1.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc