forked from kriskbx/gitlab-time-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgtt.js
More file actions
executable file
·18 lines (16 loc) · 821 Bytes
/
gtt.js
File metadata and controls
executable file
·18 lines (16 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env node
const version = '1.3.2';
const program = require('commander');
program
.version(version)
.command('start [project] [id]', 'start monitoring time for the given project and resource id')
.command('status', 'shows if time monitoring is running')
.command('stop', 'stop monitoring time')
.command('cancel', 'cancel and discard active monitoring time')
.command('log', 'log recorded time records')
.command('sync', 'sync local time records to GitLab')
.command('edit [id]', 'edit time record by the given id')
.command('delete [id]', 'delete time record by the given id')
.command('report [project] [ids]', 'generate a report for the given project and issues')
.command('config', 'edit the configuration file in your default editor')
.parse(process.argv);