@@ -20,35 +20,24 @@ const subcommands = [
2020]
2121
2222class Access extends BaseCommand {
23- static get description ( ) {
24- return 'Set access level on published packages'
25- }
26-
27- static get name ( ) {
28- return 'access'
29- }
30-
31- /* istanbul ignore next - see test/lib/load-all-commands.js */
32- static get params ( ) {
33- return [
34- 'registry' ,
35- 'otp' ,
36- ]
37- }
38-
39- static get usage ( ) {
40- return [
41- 'public [<package>]' ,
42- 'restricted [<package>]' ,
43- 'grant <read-only|read-write> <scope:team> [<package>]' ,
44- 'revoke <scope:team> [<package>]' ,
45- '2fa-required [<package>]' ,
46- '2fa-not-required [<package>]' ,
47- 'ls-packages [<user>|<scope>|<scope:team>]' ,
48- 'ls-collaborators [<package> [<user>]]' ,
49- 'edit [<package>]' ,
50- ]
51- }
23+ static description = 'Set access level on published packages'
24+ static name = 'access'
25+ static params = [
26+ 'registry' ,
27+ 'otp' ,
28+ ]
29+
30+ static usage = [
31+ 'public [<package>]' ,
32+ 'restricted [<package>]' ,
33+ 'grant <read-only|read-write> <scope:team> [<package>]' ,
34+ 'revoke <scope:team> [<package>]' ,
35+ '2fa-required [<package>]' ,
36+ '2fa-not-required [<package>]' ,
37+ 'ls-packages [<user>|<scope>|<scope:team>]' ,
38+ 'ls-collaborators [<package> [<user>]]' ,
39+ 'edit [<package>]' ,
40+ ]
5241
5342 async completion ( opts ) {
5443 const argv = opts . conf . argv . remain
0 commit comments