Support injecting PAT from an environmental variable

This commit is contained in:
Owen Farrell 2020-05-11 12:34:27 -04:00
parent 4960c7c674
commit 07ea892302

View file

@ -80,7 +80,7 @@ module.exports = function (argv: string[]): void {
program
.command('publish [<version>]')
.description('Publishes an extension')
.option('-p, --pat <token>', 'Personal Access Token')
.option('-p, --pat <token>', 'Personal Access Token', process.env['VSCE_PAT'])
.option('-m, --message <commit message>', 'Commit message used when calling `npm version`.')
.option('--packagePath [path]', 'Publish the VSIX package located at the specified path.')
.option('--baseContentUrl [url]', 'Prepend all relative links in README.md with this url.')