-
Notifications
You must be signed in to change notification settings - Fork 229
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
pub bump
command
#4361
pub bump
command
#4361
Conversation
} | ||
|
||
if (argResults.flag('dry-run')) { | ||
log.message('Would update version from $currentVersion to $newVersion.'); |
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.
Show me the diff! :D
Can we do something like:
Would update version from $currentVersion to $newVersion.
- version: $currentVersion
+ version: $newVersion
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.
Done
lib/src/command/bump.dart
Outdated
YamlEditor(readTextFile(entrypoint.workPackage.pubspecPath)); | ||
|
||
yamlEditor.update(['version'], newVersion.toString()); | ||
writeTextFile(entrypoint.workPackage.pubspecPath, yamlEditor.toString()); |
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.
Display a message that says: "Do update CHANGELOG.md before publishing!"
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.
Done
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.
Very nice!
I have no strong opinion on the subcommand matter.
#2197