MCPcopy
hub / github.com/GitGuardian/ggshield / get

Method get

ggshield/cmd/utils/context_obj.py:99–103  ·  view source on GitHub ↗

The recommended way to get a ContextObj instance, see the class docstring for details

(ctx: click.Context)

Source from the content-addressed store, hash-verified

97
98 @staticmethod
99 def get(ctx: click.Context) -> "ContextObj":
100 """The recommended way to get a ContextObj instance, see the class docstring for
101 details"""
102 assert ctx.obj
103 return cast(ContextObj, ctx.obj)

Callers 15

exit_codeFunction · 0.80
before_exitFunction · 0.80
parse_os_releaseFunction · 0.80
_get_git_pathFunction · 0.80
commandMethod · 0.80
loadFunction · 0.80
format_textFunction · 0.80
translate_validityFunction · 0.80
check_for_updatesFunction · 0.80
_get_hostnameFunction · 0.80
_parse_content_lengthFunction · 0.80

Calls

no outgoing calls