-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add confirmation prompts to unsafe cli commands #6878
Open
wconrad265
wants to merge
43
commits into
netlify:main
Choose a base branch
from
wconrad265:prompts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,617
−138
Open
Changes from 42 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
7240f02
feat: added logic handeling for the `env:set` command
wconrad265 8bc880a
feat: prompt before setting env variable across context and scope
e068e56
fix: prettier
5b5c050
fix: refactored prompts
f77233d
fix: refactor prompts
ba41978
feat: env:unset prompts user before unsetting env variable indiscrimi…
679dcc4
feat: created tests for env:set prompts
wconrad265 f19207c
build: refactored env:set promts and rewrote tests
wconrad265 a404382
feat: added prompt for env:clone and tests
wconrad265 1d6c8f6
fix: prettier fix
wconrad265 4ebe87f
build: added prompts and tests for blob command
wconrad265 d7c4065
Merge branch 'netlify:main' into prompts
wconrad265 98a1399
fix: updated tests in file to reflect new prompts
wconrad265 31cd93e
fix: updated documentation
wconrad265 cf6b27a
fix: updated error
wconrad265 6bfb620
fix: updated new lines in messages for consistence
wconrad265 4f21d60
fix: fixed prettier error
wconrad265 fc46eb3
Merge branch 'netlify:main' into prompts
wconrad265 7527f74
feat: env-set refactored
wconrad265 469691c
fix: reactored env:unset prompts
wconrad265 f6aa58d
fix: refactored prompts and tests messages
wconrad265 9ba5ada
fix: another pass of refactoring
wconrad265 a51fe6e
feat: added skip for non interactive shell and CI
wconrad265 fe4bc7f
feat: refactored code for tests realted to ci and prompts
wconrad265 fea9bb4
fix: prettier fix
wconrad265 8c65226
fix: removed console.log statements
wconrad265 0ef4b7b
fix: updated prompts based on pr feedback
wconrad265 2ad45c2
feat: added force flag option to all commands
4e42609
fix: started updating tests to work with higher level --force flag fo…
486d457
feat: refactored tests to use mockProgram
wconrad265 4f78ab7
Merge remote-tracking branch 'origin/main' into prompts
wconrad265 621c640
feat: refactor of run.js into components to add force flag
wconrad265 0d35797
Merge branch 'main' into prompts
wconrad265 26d70c8
fix: types.ts merge } deletion
wconrad265 f45f6d4
fix: fix default lint issue and typescript issue
wconrad265 637df20
fix: update blob to blobs
wconrad265 cbc3b7c
fix: updated prompt tests for ci/cd enviroment
wconrad265 c9592a0
fix: updated prompt tests to work correctly in ci/cd enviroments
wconrad265 b2b200d
fix: updated types and env variables not being restored after tests
wconrad265 c929fcc
fix: fixed tests
wconrad265 6707b33
fix: fixed flakey deploy test and added env cleanup to more tests
wconrad265 34d0b88
fix: removed a console.log() statement
wconrad265 ed3c6f3
fix: cleaned up unused functions and comments
wconrad265 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the old
--force
option, the-f
option no longer works. Do we want to add-f
for just this option. Is this ok?