Skip to content

Commit

Permalink
Fix feature_set_describe cli (feast-dev#731)
Browse files Browse the repository at this point in the history
Co-authored-by: Terence <terence.limxp@go-jek.com>
  • Loading branch information
2 people authored and khorshuheng committed Jun 5, 2020
1 parent c8cc58b commit ba0acfd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions sdk/python/feast/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,20 @@ def feature_set_create(filename):

@feature_set.command("describe")
@click.argument("name", type=click.STRING)
def feature_set_describe(name: str):
@click.option(
"--project",
"-p",
help="Project that feature set belongs to",
type=click.STRING,
default="default",
)
def feature_set_describe(name: str, project: str):
"""
Describe a feature set
"""
feast_client = Client() # type: Client
fs = feast_client.get_feature_set(name=name)
fs = feast_client.get_feature_set(name=name, project=project)

if not fs:
print(f'Feature set with name "{name}" could not be found')
return
Expand Down

0 comments on commit ba0acfd

Please sign in to comment.