kibana/x-pack/build_chromium/cli.js
2018-04-24 13:49:26 -07:00

26 lines
774 B
JavaScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import path from 'path';
import { Command } from 'commander';
import { build } from './build';
const cmd = new Command('node scripts/build_chromium');
cmd.option('--workspace [path]', 'working directory for building chromium', path.join(__dirname, '.workspace'))
.option('--git-sha [sha]', 'chromium src git SHA to checkout', '503a3e48dffe2d5bcbacef72d33b6e1801d061a2')
.parse(process.argv);
(async function () {
try {
await build(cmd);
}
catch (err) {
console.error(err.stack);
process.exit(1);
}
}());