magical_version_bump 0.0.1-dev.2
magical_version_bump: ^0.0.1-dev.2 copied to clipboard
A Very Good Project created to automatically bump the version number in Magical Kenya project.
magical_version_bump #
A command-line tool for changing/modifying the version specified in Flutter/Dart pubspec.yaml.
Table of Contents #
Getting Started #
# 🎯 Activate it on your machine
dart pub global activate magical_version_bump
Overview #
magical_version_bump
is a simple command-line tool.
Executable Name #
Executable Name | Function |
---|---|
mag |
Global executable for command-line tool |
Commands #
Command | Function |
---|---|
modify |
This command explicitly modifies a specific SemVer version number in the version specified in your pubspec.yaml. |
change |
This command overwrites the version specified in pubspec.yaml file. |
Flags #
All action
flags precede the target
flags. Check examples for insight on the same.
Flags | Shorthand abbreviation | Type | Function |
---|---|---|---|
--bump |
-b |
action |
Tells CLI to increment by 1 |
--dump |
-d |
action |
Tells CLI to decrement by 1 |
--major |
- | target |
Tells CLI to target the major version number |
--minor |
- | target |
Tells CLI to target the minor version number |
--patch |
- | target |
Tells CLI to target the patch version number |
--build-number |
- | target |
Tells CLI to target the build-number |
--with-path |
- | target |
Tells CLI to request the path from you and not check the current directory |
Usage #
Usage of the CLI is easy and straight-forward.
# To use it you must include:
$ [executable name] [command] [action flag] [target flag]
# The [action flag] is not required when using the "change" command.
# The target flags can be specified in any order. (They still make grammatical sense) ;)
# Check package version
$ mag -v
# Print help menu
$ mag -h
# Print command help menu
$ mag modify -h
$ mag change -h
Check more examples.