From b94e0a33ed06ecfc8994ab09a263ac7411a5e92c Mon Sep 17 00:00:00 2001 From: Pascal Andy Date: Mon, 9 May 2022 17:50:59 -0400 Subject: [PATCH] =?UTF-8?q?UX:=20Print=5FBlue()=20update=20emoji=20?= =?UTF-8?q?=F0=9F=A7=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bashlava.sh | 18 ++++++++---------- docs/next_move_fct_release.md | 6 +++--- docs/prompt_fct_v_version_number.md | 1 - 3 files changed, 11 insertions(+), 14 deletions(-) delete mode 100755 docs/prompt_fct_v_version_number.md diff --git a/bashlava.sh b/bashlava.sh index c84397a..8ae79a5 100755 --- a/bashlava.sh +++ b/bashlava.sh @@ -20,14 +20,12 @@ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ # TODO - -UX: refactoring config_default.sh -- consider config_custom.sh (which overrides the default) +UX: version() when prompt, stop using mdv - Impact on: #4, #8 -UX show more log() when we commit -- voir la version short du hash -- Impact on: #4, #8 +Also: +- UX: Update release() prompt + # TODO show version is missing - need to add it back @@ -307,7 +305,7 @@ function version { # User_ # set input_2 if not provided if [[ "${input_2}" == "not_set" ]]; then - _doc_name="prompt_fct_v_version_number.md" && Show_Docs + my_message="What is the version number (ex: 1.12.4.)?" && Print_Green read -r user_input; echo; my_message="${user_input}" && Print_Green @@ -411,7 +409,7 @@ function release { # User_ input_2="not_set" #reset input_2 read -r user_input; case ${user_input} in - 1 | y | e) edge;; + 1 | e) edge;; *) my_message="Aborted" && Print_Gray;; esac } @@ -658,7 +656,7 @@ function Show_Docs { } function Show_What_Was_Done { - my_message="(${_from_fct}) was done. ${app_name} ($(git rev-parse --abbrev-ref HEAD))" && Print_Green + echo && my_message="(${_from_fct}) was done. ${app_name} ($(git rev-parse --abbrev-ref HEAD))" && Print_Green } function Show_Prompt_All { @@ -728,7 +726,7 @@ function Print_Green { } function Print_Blue { _var_name="my_message" _is_it_empty="${my_message}" && Condition_Vars_Must_Be_Not_Empty - echo -e "๐Ÿ‘‹ \e[1;34m${my_message}\e[0m" + echo -e "๐Ÿงต \e[1;34m${my_message}\e[0m ๐Ÿงต" } ### Why do we have Print_Warning and Print_Warning_Stop here ? diff --git a/docs/next_move_fct_release.md b/docs/next_move_fct_release.md index f641c26..a626890 100755 --- a/docs/next_move_fct_release.md +++ b/docs/next_move_fct_release.md @@ -1,4 +1,4 @@ -๐Ÿš€ Do you want to `e`? +๐Ÿš€ What do you want to do next? -- `1` ... |`y`,`e` -- `2` ... |`n` +- `1` ... |`e` +- `2` ... |`q`uit diff --git a/docs/prompt_fct_v_version_number.md b/docs/prompt_fct_v_version_number.md deleted file mode 100755 index 56b1f8e..0000000 --- a/docs/prompt_fct_v_version_number.md +++ /dev/null @@ -1 +0,0 @@ -What is the version number _(ex: 1.4.2)_?