Skip to content

Run feast cli command without cd into feature repo directory #1507

Closed

Description

@tedhtchang

Is your feature request related to a problem? Please describe.
Is it possible to run a feast command i.e. feast apply, without cd into the feature repo directory?

Describe the solution you'd like
feast -p feature_repo apply
feast -p feature_repo materialize-incremental $CURRENT_TIME

Possible solution
PR #1509

Activity

  1. woop commented on Apr 27, 2021

    @woop
    Member

    I think this change requires a bit of discussion. We used to have this support and we removed it to be more closely aligned with Terraform.

    @tsotnet @jparthasarthy do you have thoughts on this?

  2. jparthasarthy commented on Apr 27, 2021

    @jparthasarthy
    Collaborator

    Upon further consideration, it looks like Terraform does support this via the --chdir flag. This does seem like useful functionality to have, so no opposition to adding this.

    However, I think we should generally line up our declarative APIs with theirs, so my vote is to ship their specific API (--chdir and the same behavior.) @tedhtchang would it be possible to amend your PR?

  3. tsotnet commented on Apr 27, 2021

    @tsotnet
    Collaborator

    @jparthasarthy technically Terraform's flag is -chdir, but I prefer to follow a more standard approach of one hyphen for short command and two hyphens for long commands. So I agree it should be --chdir, but would be nice to have a shorthand too, maybe -c?

  4. jparthasarthy commented on Apr 27, 2021

    @jparthasarthy
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions