MCPcopy Index your code
hub / github.com/dbcli/pgcli / confirm

Function confirm

pgcli/packages/prompt_utils.py:24–29  ·  view source on GitHub ↗

Prompt for confirmation (yes/no) and handle any abort exceptions.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

22
23
24def confirm(*args, **kwargs):
25 """Prompt for confirmation (yes/no) and handle any abort exceptions."""
26 try:
27 return click.confirm(*args, **kwargs)
28 except click.Abort:
29 return False
30
31
32def prompt(*args, **kwargs):

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected