/
githubmirror
/
yarn
Обзор
Документация
Войти
/
githubmirror
/
yarn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/cli/commands/access.js
32 строки
928 B
Fernando André Fernandes
feat(help) Add command descriptions to commander output (#5033)
09 дек 2017, 22:47
09 дек 2017, 22:47
19c8cd5
Код
Авторство
О чём код?
/* @flow */ import buildSubCommands from './_build-sub-commands.js'; const notYetImplemented = () => Promise.reject(new Error('This command is not implemented yet.')); export function setFlags(commander: Object) { commander.description('Has not been implemented yet'); } export const {run, hasWrapper, examples} = buildSubCommands( 'access', { public: notYetImplemented, restricted: notYetImplemented, grant: notYetImplemented, revoke: notYetImplemented, lsPackages: notYetImplemented, lsCollaborators: notYetImplemented, edit: notYetImplemented, }, [ 'WARNING: This command yet to be implemented.', 'public [<package>]', 'restricted [<package>]', 'grant <read-only|read-write> <scope:team> [<package>]', 'revoke <scope:team> [<package>]', 'ls-packages [<user>|<scope>|<scope:team>]', 'ls-collaborators [<package> [<user>]]', 'edit [<package>]', ], );