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