Merge pull request #447 from owenfarrell/environmental-pat

Support injecting PAT from an environmental variable
This commit is contained in:
João Moreno 2020-05-12 14:31:25 +01:00 committed by GitHub
commit ba42d4cb40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.')