MCPcopy Create free account
hub / github.com/nodejs/node / Confirm

Method Confirm

deps/v8/tools/release/common_includes.py:433–436  ·  view source on GitHub ↗
(self, msg)

Source from the content-addressed store, hash-verified

431 self.Die(msg)
432
433 def Confirm(self, msg):
434 print("%s [Y/n] " % msg, end=' ')
435 answer = self.ReadLine(default="Y")
436 return answer == "" or answer == "Y" or answer == "y"
437
438 def DeleteBranch(self, name, cwd=None):
439 for line in self.GitBranch(cwd=cwd).splitlines():

Callers 4

DeleteBranchMethod · 0.95
RunStepMethod · 0.80
RunStepMethod · 0.80
RunStepMethod · 0.80

Calls 2

ReadLineMethod · 0.95
printFunction · 0.50

Tested by

no test coverage detected