mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Improve cli output.
This commit is contained in:
parent
32f5ef9b16
commit
ccaa7934ee
9 changed files with 41 additions and 25 deletions
|
|
@ -5,6 +5,7 @@ import { ui } from "./environment/userInteraction.js";
|
|||
import { getPackageManager } from "./packagemanager/currentPackageManager.js";
|
||||
import { initializeCliArguments } from "./config/cliArguments.js";
|
||||
import { createSafeChainProxy } from "./registryProxy/registryProxy.js";
|
||||
import chalk from "chalk";
|
||||
|
||||
export async function main(args) {
|
||||
const proxy = createSafeChainProxy();
|
||||
|
|
@ -27,5 +28,12 @@ export async function main(args) {
|
|||
await proxy.stopServer();
|
||||
proxy.verifyNoMaliciousPackages();
|
||||
|
||||
ui.emptyLine();
|
||||
ui.writeInformation(
|
||||
`${chalk.green(
|
||||
"✔"
|
||||
)} Safe-chain: Command completed, no malicious packages found.`
|
||||
);
|
||||
|
||||
return result.status;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue