mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Add certificate command
This commit is contained in:
parent
c59b8263ca
commit
0fffcf2cc1
1 changed files with 7 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ import { main } from "../src/main.js";
|
|||
import path from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
import fs from "fs";
|
||||
import { getCombinedCaBundlePath } from "../src/registryProxy/certBundle.js";
|
||||
|
||||
/** @type {string} */
|
||||
let dirname;
|
||||
|
|
@ -56,6 +57,12 @@ if (pkgManagerCommands.includes(command)) {
|
|||
process.exit(0);
|
||||
} else if (command === "setup") {
|
||||
setup();
|
||||
} else if (command === "certificate") {
|
||||
(async function () {
|
||||
const path = getCombinedCaBundlePath();
|
||||
const data = await fs.promises.readFile(path);
|
||||
ui.writeInformation(data.toString("utf8"));
|
||||
})();
|
||||
} else if (command === "teardown") {
|
||||
teardown();
|
||||
} else if (command === "setup-ci") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue