MCPcopy Create free account
hub / github.com/TanStack/cli / selectGit

Function selectGit

packages/cli/src/ui-prompts.ts:215–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

213}
214
215export async function selectGit(): Promise<boolean> {
216 const git = await confirm({
217 message: 'Would you like to initialize a new git repository?',
218 initialValue: true,
219 })
220 if (isCancel(git)) {
221 cancel('Operation cancelled.')
222 process.exit(0)
223 }
224 return git
225}
226
227export async function selectExamples(): Promise<boolean> {
228 const includeExamples = await confirm({

Callers 2

ui-prompts.test.tsFile · 0.90
promptForCreateOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected