spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / hooks / quietly / quietly.ts
11 lines · 342 BRaw
1import { attempted } from '../attempted'
2
3/**
4 * Makes a call on `$` whose outcome nothing depends on (a line logged): a
5 * throw or a rejection ends there.
6 *
7 * @param call the call, made inside the hook that asked for it
8 * @returns nothing
9 */
10export const quietly = (call: () => unknown) =>
11 void attempted(call).catch(() => undefined)