@@ -74,7 +74,6 @@ def format_options(self, ctx: click.Context, formatter: click.HelpFormatter):
74
74
)
75
75
@click .option (
76
76
"--feature-store-yaml" ,
77
- "-f" ,
78
77
help = "Override the directory where the CLI should look for the feature_store.yaml file." ,
79
78
)
80
79
@click .pass_context
@@ -160,7 +159,7 @@ def ui(ctx: click.Context, host: str, port: int, registry_ttl_sec: int):
160
159
repo = ctx .obj ["CHDIR" ]
161
160
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
162
161
cli_check_repo (repo , fs_yaml_file )
163
- store = FeatureStore (repo_path = str (repo ))
162
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
164
163
# Pass in the registry_dump method to get around a circular dependency
165
164
store .serve_ui (
166
165
host = host ,
@@ -179,7 +178,7 @@ def endpoint(ctx: click.Context):
179
178
repo = ctx .obj ["CHDIR" ]
180
179
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
181
180
cli_check_repo (repo , fs_yaml_file )
182
- store = FeatureStore (repo_path = str (repo ))
181
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
183
182
endpoint = store .get_feature_server_endpoint ()
184
183
if endpoint is not None :
185
184
_logger .info (
@@ -207,7 +206,7 @@ def data_source_describe(ctx: click.Context, name: str):
207
206
repo = ctx .obj ["CHDIR" ]
208
207
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
209
208
cli_check_repo (repo , fs_yaml_file )
210
- store = FeatureStore (repo_path = str (repo ))
209
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
211
210
212
211
try :
213
212
data_source = store .get_data_source (name )
@@ -236,7 +235,7 @@ def data_source_list(ctx: click.Context):
236
235
repo = ctx .obj ["CHDIR" ]
237
236
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
238
237
cli_check_repo (repo , fs_yaml_file )
239
- store = FeatureStore (repo_path = str (repo ))
238
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
240
239
table = []
241
240
for datasource in store .list_data_sources ():
242
241
table .append ([datasource .name , datasource .__class__ ])
@@ -269,7 +268,7 @@ def entity_describe(ctx: click.Context, name: str):
269
268
repo = ctx .obj ["CHDIR" ]
270
269
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
271
270
cli_check_repo (repo , fs_yaml_file )
272
- store = FeatureStore (repo_path = str (repo ))
271
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
273
272
274
273
try :
275
274
entity = store .get_entity (name )
@@ -293,7 +292,7 @@ def entity_list(ctx: click.Context):
293
292
repo = ctx .obj ["CHDIR" ]
294
293
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
295
294
cli_check_repo (repo , fs_yaml_file )
296
- store = FeatureStore (repo_path = str (repo ))
295
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
297
296
table = []
298
297
for entity in store .list_entities ():
299
298
table .append ([entity .name , entity .description , entity .value_type ])
@@ -321,7 +320,7 @@ def feature_service_describe(ctx: click.Context, name: str):
321
320
repo = ctx .obj ["CHDIR" ]
322
321
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
323
322
cli_check_repo (repo , fs_yaml_file )
324
- store = FeatureStore (repo_path = str (repo ))
323
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
325
324
326
325
try :
327
326
feature_service = store .get_feature_service (name )
@@ -347,7 +346,7 @@ def feature_service_list(ctx: click.Context):
347
346
repo = ctx .obj ["CHDIR" ]
348
347
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
349
348
cli_check_repo (repo , fs_yaml_file )
350
- store = FeatureStore (repo_path = str (repo ))
349
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
351
350
feature_services = []
352
351
for feature_service in store .list_feature_services ():
353
352
feature_names = []
@@ -380,7 +379,7 @@ def feature_view_describe(ctx: click.Context, name: str):
380
379
repo = ctx .obj ["CHDIR" ]
381
380
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
382
381
cli_check_repo (repo , fs_yaml_file )
383
- store = FeatureStore (repo_path = str (repo ))
382
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
384
383
385
384
try :
386
385
feature_view = store .get_feature_view (name )
@@ -403,8 +402,9 @@ def feature_view_list(ctx: click.Context):
403
402
"""
404
403
repo = ctx .obj ["CHDIR" ]
405
404
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
405
+
406
406
cli_check_repo (repo , fs_yaml_file )
407
- store = FeatureStore (repo_path = str (repo ))
407
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
408
408
table = []
409
409
for feature_view in [
410
410
* store .list_feature_views (),
@@ -448,7 +448,7 @@ def on_demand_feature_view_describe(ctx: click.Context, name: str):
448
448
repo = ctx .obj ["CHDIR" ]
449
449
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
450
450
cli_check_repo (repo , fs_yaml_file )
451
- store = FeatureStore (repo_path = str (repo ))
451
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
452
452
453
453
try :
454
454
on_demand_feature_view = store .get_on_demand_feature_view (name )
@@ -474,7 +474,7 @@ def on_demand_feature_view_list(ctx: click.Context):
474
474
repo = ctx .obj ["CHDIR" ]
475
475
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
476
476
cli_check_repo (repo , fs_yaml_file )
477
- store = FeatureStore (repo_path = str (repo ))
477
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
478
478
table = []
479
479
for on_demand_feature_view in store .list_on_demand_feature_views ():
480
480
table .append ([on_demand_feature_view .name ])
@@ -579,7 +579,7 @@ def materialize_command(
579
579
repo = ctx .obj ["CHDIR" ]
580
580
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
581
581
cli_check_repo (repo , fs_yaml_file )
582
- store = FeatureStore (repo_path = str (repo ))
582
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
583
583
store .materialize (
584
584
feature_views = None if not views else views ,
585
585
start_date = utils .make_tzaware (parser .parse (start_ts )),
@@ -608,7 +608,7 @@ def materialize_incremental_command(ctx: click.Context, end_ts: str, views: List
608
608
repo = ctx .obj ["CHDIR" ]
609
609
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
610
610
cli_check_repo (repo , fs_yaml_file )
611
- store = FeatureStore (repo_path = str (repo ))
611
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
612
612
store .materialize_incremental (
613
613
feature_views = None if not views else views ,
614
614
end_date = utils .make_tzaware (datetime .fromisoformat (end_ts )),
@@ -699,7 +699,7 @@ def serve_command(
699
699
repo = ctx .obj ["CHDIR" ]
700
700
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
701
701
cli_check_repo (repo , fs_yaml_file )
702
- store = FeatureStore (repo_path = str (repo ))
702
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
703
703
704
704
if go :
705
705
# Turn on Go feature retrieval.
@@ -722,7 +722,7 @@ def serve_transformations_command(ctx: click.Context, port: int):
722
722
repo = ctx .obj ["CHDIR" ]
723
723
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
724
724
cli_check_repo (repo , fs_yaml_file )
725
- store = FeatureStore (repo_path = str (repo ))
725
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
726
726
727
727
store .serve_transformations (port )
728
728
@@ -762,7 +762,7 @@ def validate(
762
762
repo = ctx .obj ["CHDIR" ]
763
763
fs_yaml_file = ctx .obj ["FS_YAML_FILE" ]
764
764
cli_check_repo (repo , fs_yaml_file )
765
- store = FeatureStore (repo_path = str (repo ))
765
+ store = FeatureStore (repo_path = str (repo ), fs_yaml_file = fs_yaml_file )
766
766
767
767
feature_service = store .get_feature_service (name = feature_service )
768
768
reference = store .get_validation_reference (reference )
0 commit comments