mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Another iteration
This commit is contained in:
parent
f400c5576a
commit
28d24bb6ea
12 changed files with 134 additions and 107 deletions
|
|
@ -3,17 +3,17 @@
|
|||
import { main } from "../src/main.js";
|
||||
import { initializePackageManager } from "../src/packagemanager/currentPackageManager.js";
|
||||
import { setEcoSystem, ECOSYSTEM_PY } from "../src/config/settings.js";
|
||||
import { setCurrentPipInvocation, PIP_INVOCATIONS, PIP_PACKAGE_MANAGER } from "../src/packagemanager/pip/pipSettings.js";
|
||||
|
||||
// Explicit pip3 entrypoint
|
||||
const packageManagerName = "pip3";
|
||||
|
||||
// Copy argv as-is
|
||||
const argv = process.argv.slice(2);
|
||||
|
||||
// Set ecosystem to Python
|
||||
// Set eco system
|
||||
setEcoSystem(ECOSYSTEM_PY);
|
||||
|
||||
initializePackageManager(packageManagerName);
|
||||
var exitCode = await main(argv);
|
||||
// Set current invocation
|
||||
setCurrentPipInvocation(PIP_INVOCATIONS.PIP3);
|
||||
|
||||
// Create package manager
|
||||
initializePackageManager(PIP_PACKAGE_MANAGER);
|
||||
|
||||
// Pass through only user-supplied pip args
|
||||
var exitCode = await main(process.argv.slice(2));
|
||||
process.exit(exitCode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue