Skip to content

Commit

Permalink
style: refactor version manager options and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonbosa committed May 12, 2024
1 parent 4d4b8b1 commit 99b5e07
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions moshell.sh/tools/version_manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ function __moshell:tools::version_manager::increment_version() {
}

function __moshell::tools::version_manager::push_version() {
# NOTE: talvez no futuro use a
git add version
git commit -m "release($(cat $_MOSHELL_DIR_BASE_PATH/version))"
git push -u origin $(git branch --show-current)
Expand All @@ -75,11 +74,11 @@ function __moshell::tools::version_manager::show_usage() {
echo "Usage: $(basename $0) [OPTIONS]"
echo
echo "Options:"
echo " -1, --patch Increment the patch version"
echo " -2, --minor Increment the minor version"
echo " -3, --major Increment the major version"
echo " -P, --push Release NEW VERSION to the git repository"
echo " -h, --help Show this usage message"
echo " -1, --patch Increment the patch version"
echo " -2, --minor Increment the minor version"
echo " -3, --major Increment the major version"
echo " -R, --release Release NEW VERSION to the git repository"
echo " -h, --help Show this usage message"
exit 0
}

Expand Down

0 comments on commit 99b5e07

Please sign in to comment.