Display Feast configuration
(ctx: click.Context)
| 203 | @cli.command() |
| 204 | @click.pass_context |
| 205 | def configuration(ctx: click.Context): |
| 206 | """ |
| 207 | Display Feast configuration |
| 208 | """ |
| 209 | repo = ctx.obj["CHDIR"] |
| 210 | fs_yaml_file = ctx.obj["FS_YAML_FILE"] |
| 211 | cli_check_repo(repo, fs_yaml_file) |
| 212 | repo_config = load_repo_config(repo, fs_yaml_file) |
| 213 | if repo_config: |
| 214 | config_dict = repo_config.model_dump(by_alias=True, exclude_unset=True) |
| 215 | config_dict.pop("repo_path", None) |
| 216 | print(yaml.dump(config_dict, default_flow_style=False, sort_keys=False)) |
| 217 | else: |
| 218 | print("No configuration found.") |
| 219 | |
| 220 | |
| 221 | @cli.command() |
nothing calls this directly
no test coverage detected