|
1 | 1 | import program from 'commander';
|
2 | 2 | import leven from 'leven';
|
3 |
| -import { packageCommand, ls, Targets, generateManifest } from './package'; |
| 3 | +import { packageCommand, ls, Targets, generateManifest, verifySignature } from './package'; |
4 | 4 | import { publish, unpublish } from './publish';
|
5 | 5 | import { show } from './show';
|
6 | 6 | import { search } from './search';
|
@@ -317,6 +317,14 @@ module.exports = function (argv: string[]): void {
|
317 | 317 | .option('-o, --out <path>', 'Output the extension manifest to <path> location (defaults to <packagename>.manifest)')
|
318 | 318 | .action(({ packagePath, out }) => main(generateManifest(packagePath, out)));
|
319 | 319 |
|
| 320 | + program |
| 321 | + .command('verify-signature') |
| 322 | + .description('Verifies the provided signature file against the provided VSIX package and manifest.') |
| 323 | + .requiredOption('-i, --packagePath <path>', 'Path to the VSIX package') |
| 324 | + .requiredOption('-m, --manifestPath <path>', 'Path to the Manifest file') |
| 325 | + .requiredOption('-s, --signaturePath <path>', 'Path to the Signature file') |
| 326 | + .action(({ packagePath, manifestPath, signaturePath }) => main(verifySignature(packagePath, manifestPath, signaturePath))); |
| 327 | + |
320 | 328 | program
|
321 | 329 | .command('ls-publishers')
|
322 | 330 | .description('Lists all known publishers')
|
|
0 commit comments