MCPcopy Index your code
hub / github.com/changesets/changesets / askQuestion

Function askQuestion

packages/cli/src/utils/cli-utilities.ts:81–97  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

79}
80
81async function askQuestion(message: string): Promise<string> {
82 const name = `Question-${serialId()}`;
83
84 return prompt([
85 {
86 type: "input",
87 message,
88 name,
89 prefix,
90 onCancel: cancelFlow,
91 } as StringPromptOptions,
92 ])
93 .then((responses: any) => responses[name])
94 .catch((err: unknown) => {
95 error(err);
96 });
97}
98
99function askQuestionWithEditor(message: string): string {
100 const response = edit(message, { postfix: ".md" });

Callers

nothing calls this directly

Calls 1

errorFunction · 0.90

Tested by

no test coverage detected