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
·20 lines (18 loc) · 1.03 KB
/
gtt.js
File metadata and controls
executable file
·20 lines (18 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env node
const version = '1.7.9';
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('resume [project]', 'resume monitoring time for last stopped record')
.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);