- CLI entry point with yargs parsing for speckl-compile <file> --output-dir --bom-format - TypeScript parser with AST types for all SpeckDL primitives - Generator for PROV-O JSON-LD provenance graphs - Generator for CycloneDX v1.6 BOMs - Generator for SPDX 3.0.1 BOMs - E2E test verifying RetryHandler.speck parsing and all output formats All tests pass.
17 lines
436 B
JavaScript
17 lines
436 B
JavaScript
function getProcessArgvBinIndex() {
|
|
if (isBundledElectronApp())
|
|
return 0;
|
|
return 1;
|
|
}
|
|
function isBundledElectronApp() {
|
|
return isElectronApp() && !process.defaultApp;
|
|
}
|
|
function isElectronApp() {
|
|
return !!process.versions.electron;
|
|
}
|
|
export function hideBin(argv) {
|
|
return argv.slice(getProcessArgvBinIndex() + 1);
|
|
}
|
|
export function getProcessArgvBin() {
|
|
return process.argv[getProcessArgvBinIndex()];
|
|
}
|