MCPcopy Create free account
hub / github.com/benzaita/dockerized-cli / friendly_dockerized_errors

Function friendly_dockerized_errors

dockerized/ui/cli.py:19–24  ·  view source on GitHub ↗
(click)

Source from the content-addressed store, hash-verified

17
18@contextmanager
19def friendly_dockerized_errors(click):
20 try:
21 yield
22 except CommandError as err:
23 click.echo(err.message, err=True)
24 click.get_current_context().exit(1)
25
26
27@click.group()

Callers 6

initFunction · 0.85
execFunction · 0.85
cleanFunction · 0.85
pushFunction · 0.85
shellFunction · 0.85
composeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected