-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: ## Background We are migrating `eden remove` command from Python to Rust for better error handling and code readability. ## This Diff Handles the case when the path provided by the user to remove is actually a file. To handle this, we prompt the user for confirmation and simply go deleting it. Also in this diff, we introduced a testing-only flag "-n". This is because currently dialoguer::Confirm does not accept input from non-terminal. Passing "-y" and "-n" at the same time is undefined and will cause error. Reviewed By: muirdm Differential Revision: D65801635 fbshipit-source-id: 8990a161936d0c132c97fe751562a90f319be30f
- Loading branch information
1 parent
f7caf40
commit cce45ac
Showing
2 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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