Describe a permission
(ctx: click.Context, name: str)
| 148 | @click.argument("name", type=click.STRING) |
| 149 | @click.pass_context |
| 150 | def 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") |
nothing calls this directly
no test coverage detected