From 99b5e07362de27e312d3bbe1774588437b417c77 Mon Sep 17 00:00:00 2001 From: andersonbosa <andersonbosa0@gmail.com> Date: Sun, 12 May 2024 09:57:27 -0300 Subject: [PATCH] style: refactor version manager options and functions --- moshell.sh/tools/version_manager.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/moshell.sh/tools/version_manager.sh b/moshell.sh/tools/version_manager.sh index 8a36488..1be0fa0 100755 --- a/moshell.sh/tools/version_manager.sh +++ b/moshell.sh/tools/version_manager.sh @@ -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) @@ -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 }