Skip to content

Commit

Permalink
Fix feature_set_describe cli (#731)
Browse files Browse the repository at this point in the history
Co-authored-by: Terence <[email protected]>
  • Loading branch information
terryyylim and Terence authored May 30, 2020
1 parent 714b0c2 commit 0ec49cd
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 0ec49cd

Please sign in to comment.