MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / shouldPrintVerboseErrors

Function shouldPrintVerboseErrors

apps/cli/src/main.ts:1642–1645  ·  view source on GitHub ↗
(argv: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

1640};
1641
1642const shouldPrintVerboseErrors = (argv: ReadonlyArray<string>): boolean => {
1643 const level = readCliLogLevel(argv)?.trim().toLowerCase();
1644 return level === "all" || level === "trace" || level === "debug";
1645};
1646
1647const renderCliError = (cause: Cause.Cause<unknown>): string => {
1648 const squashed = Cause.squash(cause);

Callers 1

main.tsFile · 0.85

Calls 1

readCliLogLevelFunction · 0.85

Tested by

no test coverage detected