MCPcopy Create free account
hub / github.com/alovajs/devtools / askConfirmation

Function askConfirmation

scripts/bump-version.ts:11–18  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

9
10// Ask the user whether to execute changeset
11function askConfirmation(query: string) {
12 return new Promise((resolve) => {
13 rl.question(query, (answer) => {
14 answer = answer || 'y'
15 resolve(answer.toLowerCase() === 'y')
16 })
17 })
18}
19
20// Run the specified shell command
21function runCommand(command: string) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected