From fc490dc8b6a92f39c6d976eadaad8200efbad399 Mon Sep 17 00:00:00 2001 From: Shuchu Han Date: Fri, 16 Feb 2024 18:31:05 -0500 Subject: [PATCH 1/2] fix: Fix typo as the cli does not support shortcut-f option. Signed-off-by: Shuchu Han --- docs/how-to-guides/structuring-repos.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/how-to-guides/structuring-repos.md b/docs/how-to-guides/structuring-repos.md index 62f7094e9f6..6734aca282e 100644 --- a/docs/how-to-guides/structuring-repos.md +++ b/docs/how-to-guides/structuring-repos.md @@ -96,7 +96,7 @@ An example of how such a repository would be structured is as follows: Users can then apply the applying them to each environment in this way: ```shell -feast -f staging/feature_store.yaml apply +feast --feature-store-yaml staging/feature_store.yaml apply ``` This setup has the advantage that you can share the feature definitions entirely, which may prevent issues with copy-pasting code. From 4e1ef0b7479906c210996711297592cffb88b446 Mon Sep 17 00:00:00 2001 From: Shuchu Han Date: Sat, 17 Feb 2024 13:18:20 -0500 Subject: [PATCH 2/2] fix: add -f option as a shortcut of feature-store-yaml. Signed-off-by: Shuchu Han --- docs/how-to-guides/structuring-repos.md | 2 +- sdk/python/feast/cli.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/how-to-guides/structuring-repos.md b/docs/how-to-guides/structuring-repos.md index 6734aca282e..62f7094e9f6 100644 --- a/docs/how-to-guides/structuring-repos.md +++ b/docs/how-to-guides/structuring-repos.md @@ -96,7 +96,7 @@ An example of how such a repository would be structured is as follows: Users can then apply the applying them to each environment in this way: ```shell -feast --feature-store-yaml staging/feature_store.yaml apply +feast -f staging/feature_store.yaml apply ``` This setup has the advantage that you can share the feature definitions entirely, which may prevent issues with copy-pasting code. diff --git a/sdk/python/feast/cli.py b/sdk/python/feast/cli.py index 985c44b821f..7ce8aaef2bc 100644 --- a/sdk/python/feast/cli.py +++ b/sdk/python/feast/cli.py @@ -76,6 +76,7 @@ def format_options(self, ctx: click.Context, formatter: click.HelpFormatter): ) @click.option( "--feature-store-yaml", + "-f", help="Override the directory where the CLI should look for the feature_store.yaml file.", ) @click.pass_context