MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / questions

Function questions

examples/agents/readme-writer-agent/utils/questions.ts:3–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import * as p from '@clack/prompts';
2
3export async function questions() {
4 const readme = await p.group(
5 {
6 level: () =>
7 p.select({
8 message:
9 'Choose the level of detail you want in the README.',
10 options: [
11 {label: 'Simple', value: 'simple' as unknown as any},
12 {
13 label: 'Detailed',
14 value: 'detailed' as unknown as any,
15 },
16 ],
17 }),
18 },
19 {
20 onCancel: () => {
21 p.cancel('Operation cancelled.');
22 process.exit(0);
23 },
24 },
25 );
26
27 return {level: readme.level};
28}

Callers 1

index.tsFile · 0.90

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected