-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Fixes #1310: mason add command ask for overwrite if brick is found #1366
base: master
Are you sure you want to change the base?
Fixes #1310: mason add command ask for overwrite if brick is found #1366
Conversation
packages/mason_cli/pubspec.yaml
Outdated
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.
Can we revert the changes to the pubspec since they aren’t related to the issue?
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.
Okay I'll revert the pubspec changes
|
||
final masonYaml = isGlobal ? globalMasonYaml : localMasonYaml; | ||
if (masonYaml.bricks.keys.contains(brick.name)) { | ||
final confirmation = logger.confirm( |
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.
Can you add some unit tests for the new functionality?
final masonYaml = isGlobal ? globalMasonYaml : localMasonYaml; | ||
if (masonYaml.bricks.keys.contains(brick.name)) { | ||
final confirmation = logger.confirm( | ||
'Existing ${brick.name} found, you want to overwrite it?', |
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.
'Existing ${brick.name} found, you want to overwrite it?', | |
'Existing ${brick.name} found. Do you want to overwrite it?', |
25688ec
to
cf032d8
Compare
Status
Ready for review
Description
This is a part of #1310, "feat: ask to overwrite or not for duplicate brick name".
Changes:
Type of Change