Skip to content

Commit

Permalink
Fix feature_set_describe cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Terence committed May 26, 2020
1 parent 615423a commit 77d94fb
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 77d94fb

Please sign in to comment.