Lines Matching refs:subcmd
73 async exec ([cmd, subcmd, ...args]) { argument
81 if (!subcmd) {
87 if (!['read-only', 'read-write'].includes(subcmd)) {
93 return this.#grant(subcmd, args[0], args[1])
95 return this.#revoke(subcmd, args[0])
98 if (subcmd === 'packages') {
101 if (subcmd === 'collaborators') {
104 throw this.usageError(`list ${subcmd} is not a valid access command`)
106 if (subcmd !== 'status') {
107 throw this.usageError(`get ${subcmd} is not a valid access command`)
111 if (!setCommands.includes(subcmd)) {
112 throw this.usageError(`set ${subcmd} is not a valid access command`)
114 return this.#set(subcmd, args[0])
146 async #set (subcmd, pkg) { argument
147 const [subkey, subval] = subcmd.split('=')