MCPcopy Index your code
hub / github.com/feast-dev/feast / permission_describe

Function permission_describe

sdk/python/feast/cli/permissions.py:150–166  ·  view source on GitHub ↗

Describe a permission

(ctx: click.Context, name: str)

Source from the content-addressed store, hash-verified

148@click.argument("name", type=click.STRING)
149@click.pass_context
150def permission_describe(ctx: click.Context, name: str):
151 """
152 Describe a permission
153 """
154 store = create_feature_store(ctx)
155
156 try:
157 permission = store.get_permission(name)
158 except FeastObjectNotFoundException as e:
159 print(e)
160 exit(1)
161
162 print(
163 yaml.dump(
164 yaml.safe_load(str(permission)), default_flow_style=False, sort_keys=False
165 )
166 )
167
168
169@feast_permissions_cmd.command(name="check")

Callers

nothing calls this directly

Calls 2

create_feature_storeFunction · 0.90
get_permissionMethod · 0.45

Tested by

no test coverage detected