MCPcopy
hub / github.com/feast-dev/feast / configuration

Function configuration

sdk/python/feast/cli/cli.py:205–218  ·  view source on GitHub ↗

Display Feast configuration

(ctx: click.Context)

Source from the content-addressed store, hash-verified

203@cli.command()
204@click.pass_context
205def 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()

Callers

nothing calls this directly

Calls 2

cli_check_repoFunction · 0.90
load_repo_configFunction · 0.90

Tested by

no test coverage detected