4 const shutdown = require('shutdown');
6 const groupService = require('gitter-web-groups');
7 const findGroupAdminUsers = require('./lib/find-group-admin-users');
9 const opts = require('yargs')
13 description: 'URI of group to remove',
17 .alias('help', 'h').argv;
23 throw new Error(`Group with URI ${group.uri} does not exist`);
26 console.log(`Processing ${group.uri}`);
27 return findGroupAdminUsers(group);
30 shutdown.shutdownGracefully();
32 .catch(function(err) {
34 console.error(err.stack);
36 shutdown.shutdownGracefully(1);