mite-cli
Version:
command line tool for time tracking service mite.de
31 lines (29 loc) • 860 B
JavaScript
;
/**
* https://www.npmjs.com/package/tabtab#3-parsing-env
*
* @param {string} env.lastPartial - the characters entered in the current
* argument before hitting tabtab
* @param {string} env.prev - last given argument value, or previously
* completed value
* @param {string} env.words - the number of argument currently active
* @param {string} env.line - the current complete input line in the cli
* @returns {Promise<Array<string>>}
*/
module.exports = async () => {
return [
{
name: 'timeEntryId',
description: 'id of the time entry which should be unlocked',
},
{
name: '--help',
description: 'show help message'
},
{
name: '--force',
description: 'try to force-unlock the time entry'
}
];
};