mirror of
https://github.com/github/codeql.git
synced 2026-04-19 05:54:00 +02:00
17 lines
431 B
JavaScript
17 lines
431 B
JavaScript
const {Command} = require('commander');
|
|
const program = new Command();
|
|
import {localZipLoad} from "./main-jszip";
|
|
|
|
program
|
|
.command('serve')
|
|
.argument('<script>')
|
|
.option('-p, --port <number>', 'port number', 80)
|
|
.action(function () {
|
|
localZipLoad(this.opts().zipPath);
|
|
localZipLoad(this.args[0]);
|
|
});
|
|
|
|
program.parse();
|
|
|
|
// Try the following:
|
|
// node action-this.js serve --port 8080 index.js
|