zapier-platform-cli
Version:
The CLI for apps in the Zapier Developer Platform.
12 lines (8 loc) • 2.29 kB
JavaScript
;
var utils = require('../utils');
var makeAccess = require('./_access');
var collaborate = makeAccess('collaborate', 'collaborator');
collaborate.help = 'Manage the collaborators on your project. Can optionally --remove.';
collaborate.example = 'zapier collaborate [user@example.com]';
collaborate.docs = '\nGive any user registered on Zapier the ability to collaborate on your app. Commonly, this is useful for teammates, contractors, or other developers who might want to make changes on your app. Only admin access is supported. If you\'d only like to provide read-only or testing access, try `zapier invite`.\n\n**Arguments**\n\n* _none_ -- print all collaborators\n' + utils.argsFragment(collaborate.argsSpec) + '\n' + utils.argOptsFragment(collaborate.argOptsSpec) + '\n' + utils.defaultArgOptsFragment() + '\n\n' + '```' + 'bash\n$ zapier collaborate\n# The collaborators on your app "Example" listed below.\n#\n# \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n# \u2502 Email \u2502 Role \u2502 Status \u2502\n# \u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n# \u2502 user@example.com \u2502 admin \u2502 accepted \u2502\n# \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n\n$ zapier collaborate user@example.com\n# Preparing to add collaborator user@example.com to your app "Example".\n#\n# Adding user@example.com - done!\n#\n# Collaborators updated! Try viewing them with `zapier collaborate`.\n\n$ zapier collaborate user@example.com --remove\n# Preparing to remove collaborator user@example.com from your app "Example".\n#\n# Removing user@example.com - done!\n#\n# Collaborators updated! Try viewing them with `zapier collaborate`.\n' + '```' + '\n';
module.exports = collaborate;