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
·17 lines (15 loc) · 758 Bytes
/
gtt.js
File metadata and controls
executable file
·17 lines (15 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env node
const version = '1.1.0';
const program = require('commander');
program
.version(version)
.command('start [project] [id]', 'start monitoring time for the given project and resource id')
.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);