MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getPromptForCommand

Function getPromptForCommand

src/commands/commit.ts:65–89  ·  view source on GitHub ↗
(_args, context)

Source from the content-addressed store, hash-verified

63 progressMessage: 'creating commit',
64 source: 'builtin',
65 async getPromptForCommand(_args, context) {
66 const promptContent = getPromptContent()
67 const finalContent = await executeShellCommandsInPrompt(
68 promptContent,
69 {
70 ...context,
71 getAppState() {
72 const appState = context.getAppState()
73 return {
74 ...appState,
75 toolPermissionContext: {
76 ...appState.toolPermissionContext,
77 alwaysAllowRules: {
78 ...appState.toolPermissionContext.alwaysAllowRules,
79 command: ALLOWED_TOOLS,
80 },
81 },
82 }
83 },
84 },
85 '/commit',
86 )
87
88 return [{ type: 'text', text: finalContent }]
89 },
90} satisfies Command
91
92export default command

Callers

nothing calls this directly

Calls 2

getPromptContentFunction · 0.70

Tested by

no test coverage detected