-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathpassbolt.js
executable file
·31 lines (29 loc) · 1.2 KB
/
passbolt.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Passbolt ~ Open source password manager for teams
* Copyright (c) Passbolt SA (https://www.passbolt.com)
*
* Licensed under GNU Affero General Public License version 3 of the or any later version.
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Passbolt SA (https://www.passbolt.com)
* @license https://opensource.org/licenses/AGPL-3.0 AGPL License
* @link https://www.passbolt.com Passbolt(tm)
*/
const {Command} = require('commander');
const pjson = require('./package.json');
const program = new Command();
program
.version(pjson.version)
.command('auth', 'Authentication actions, login or logout')
.command('get', 'View the OpenPGP data block of a given resource')
.command('find', 'Find one or more resources')
.command('server-key', 'Fetch the server public key')
.command('users', 'List all users')
.command('user', 'View one user details')
.parse(process.argv);
process.on('uncaughtException', function (err) {
console.error((new Date).toUTCString() + ' uncaughtException:', err.message);
console.error(err.stack);
process.exit(1);
});