zksync-cli
Version:
CLI tool that simplifies the process of developing applications and interacting with the ZKsync network
19 lines • 675 B
JavaScript
import Program from "./command.js";
import { handler as start } from "./start.js";
import { handler as stop } from "./stop.js";
import Logger from "../../utils/logger.js";
export const handler = async (modulePackageNames) => {
try {
await stop(modulePackageNames);
await start();
}
catch (error) {
Logger.error("There was an error while restarting the testing environment:");
Logger.error(error);
}
};
Program.command("restart")
.description("Restart local ZKsync environment and modules")
.argument("[module...]", "NPM package names of the modules to restart")
.action(handler);
//# sourceMappingURL=restart.js.map