MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getShouldBootstrap

Function getShouldBootstrap

npm_modules/cli/src/commands/bootstrap.ts:69–74  ·  view source on GitHub ↗
(argv: ArgumentsResolver<CommandParameters>)

Source from the content-addressed store, hash-verified

67}
68
69async function getShouldBootstrap(argv: ArgumentsResolver<CommandParameters>): Promise<boolean> {
70 // Get confirmation on directory path
71 return argv.getArgumentOrResolve('confirmBootstrap', () => {
72 return getUserConfirmation('Do you want to create a new project in the current directory?', true);
73 });
74}
75
76const defaultProjectName = path.basename(process.cwd());
77

Callers 1

valdiBootstrapFunction · 0.85

Calls 2

getUserConfirmationFunction · 0.90
getArgumentOrResolveMethod · 0.80

Tested by

no test coverage detected