Comparing version 0.1.11 to 0.1.12
@@ -9,2 +9,3 @@ #!/usr/bin/env node | ||
import { exists } from './util.js'; | ||
import { formatArguments } from '../util.js'; | ||
console.log('EDAcation CLI'); | ||
@@ -130,3 +131,3 @@ console.log(); | ||
const workerOptions = getNextpnrWorkerOptions(project, target.id); | ||
console.log([workerOptions.tool].concat(workerOptions.arguments).join(' ')); | ||
console.log([workerOptions.tool].concat(formatArguments(workerOptions.arguments)).join('\n')); | ||
console.log(); | ||
@@ -133,0 +134,0 @@ if (shouldExecute) { |
@@ -13,1 +13,2 @@ /// <reference types="node" resolution-mode="require"/> | ||
export declare const FILE_EXTENSIONS_HDL: string[]; | ||
export declare const formatArguments: (args: string[]) => string[]; |
@@ -10,2 +10,3 @@ const textEncoder = new TextEncoder(); | ||
export const FILE_EXTENSIONS_HDL = [...FILE_EXTENSIONS_VERILOG, ...FILE_EXTENSIONS_VHDL]; | ||
export const formatArguments = (args) => args.reduce((prev, arg) => arg.startsWith('--') ? [...prev, arg] : [...prev.slice(0, prev.length - 1), `${prev[prev.length - 1]} ${arg}`], []); | ||
//# sourceMappingURL=util.js.map |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"contributors": [ | ||
@@ -8,0 +8,0 @@ "Danielle Huisman <danielle@huisman.me> (https://github.com/DanielleHuisman)" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121883
2368