Skip to content

Commit 2206f70

Browse files
committed
remove cli stuff
1 parent 84471e1 commit 2206f70

File tree

2 files changed

+0
-117
lines changed

2 files changed

+0
-117
lines changed

src/install.ts

Lines changed: 0 additions & 89 deletions
This file was deleted.

src/utils.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1 @@
1-
import { HardhatPluginError } from "hardhat/plugins";
2-
31
export const PLUGIN_NAME = "hardhat-plugin-noir";
4-
5-
export const makeRunCommand = (cwd?: string) => async (command: string) => {
6-
const { exec } = await import("child_process");
7-
const { promisify } = await import("util");
8-
const execAsync = promisify(exec);
9-
// TODO(security): escape command arguments (use template strings)
10-
try {
11-
const { stdout, stderr } = await execAsync(command, {
12-
cwd,
13-
maxBuffer: Infinity,
14-
});
15-
if (stdout) {
16-
console.log(stdout);
17-
}
18-
if (stderr) {
19-
console.error(stderr);
20-
}
21-
} catch (error) {
22-
console.error(`Error executing command: ${command}`);
23-
console.error((error as any).stderr || (error as any).message); // Log only error messages
24-
throw new HardhatPluginError(
25-
PLUGIN_NAME,
26-
`Error executing command: ${command}`,
27-
);
28-
}
29-
};

0 commit comments

Comments
 (0)