feat(cli): Add `feast projects delete` command by mailtoboggavarapu-coder · Pull Request #6302 · feast-dev/feast
ntkathole
changed the title
feat(cli): add
feat(cli): Add feast projects delete commandfeast projects delete command
Exposes project deletion via the CLI. The new `feast projects delete <name>` command calls `store._registry.delete_project()` which is already implemented in all concrete registries. Adds an interactive confirmation prompt that can be bypassed with --yes/-y for scripted workflows. - Adds type guard (`assert store._registry is not None`) for mypy. - Catches both FeastObjectNotFoundException and ProjectNotFoundException so the CLI exits cleanly (exit code 1) for either variant raised by concrete registry implementations. Squashed history: this commit consolidates the previous unsigned commits on the branch into a single DCO-signed commit, per DCO requirements. Signed-off-by: Venkateswarlu Boggavarapu <mailtoboggavarapu@gmail.com>
…t_delete store._registry is always None until accessed via the lazy-init registry property. Using store._registry directly caused project_delete to always crash with an AssertionError. Fixes: Devin Review finding in feast-dev#6302 Signed-off-by: Venkateswarlu Boggavarapu <mailtoboggavarapu@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters