Skip to content

Commit

Permalink
New Feat: show() #4
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalandy committed May 5, 2022
1 parent e968537 commit 2cd9fb1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 36 deletions.
2 changes: 1 addition & 1 deletion components/example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function str_not_eq {
fi
}

function random_11 { #Side_
function random_11 {
openssl rand -hex 3
}

Expand Down
37 changes: 14 additions & 23 deletions components/sidecars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,32 @@ function Show_Prompt_All { #Side_

Core_Check_Which_File_Exist

_doc_name="prompt_show_fct.md" && clear && Show_Docs && sleep 1
echo
_doc_name="prompt_show_fct.md" && clear && Show_Docs

read -r month
case ${month} in
1 | al)
Show_Alias;;
2)
echo "0o0o";;
3)
echo "0o0o";;
4)
echo "0o0o";;
5)
echo "0o0o";;
6)
Show_Sidecars;;
1 | ali) Show_Category_Alias;;
2 | cond) echo "cond";;
3 | core) echo "core";;
4 | ex) echo "ex";;
5 | pri) echo "pri";;
6 | user) echo "user";;
7 | util) echo "util";;
8 | all) echo "all";;
f1) echo "f1";;
f2) echo "f2";;
*)
echo "cancel" && exit 1;;
echo "Aboarded" && exit 1;;
esac
}

#1
function Show_Alias { #Side_
function Show_Category_Alias {
my_message="alias" && Print_Blue && echo
my_message="$(cat ${_path_components}/alias.sh | grep "function " | awk '{print $2}')" && Print_Gray && echo
}

#6
function Show_Sidecars { #Side_
my_message="sidecars" && Print_Blue && echo
my_message="$(cat ${_path_components}/sidecars.sh | grep "{ #Side_" | awk '{print $2}')" && Print_Gray && echo
}

function wip { #Side_
function wip {
my_message="sidecars" && Print_Blue && echo
my_message="$(cat ${_path_components}/sidecars.sh | grep "{ #Side_" | awk '{print $2}')" && Print_Gray && echo

Expand Down
27 changes: 15 additions & 12 deletions docs/prompt_show_fct.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
**Options:**
Show functions by categories:

- `1`,`al` ..... show `Alias` fcts
- `2`,`app` ..... show `App` fcts
- `3`,`cond` ..... show `Condition` fcts
- `4`,`core` ..... show `Core` fcts
- `5`,`ex` ..... show `Example` fcts
- `6`,`p` .... show `Print` fcts
- `7`,`s` .... show `Sidecars` fcts
- `8`,`user` .... show `User facing` for fcts
- `9`,`all` .... show `All` fcts (shown via help)
- `f`, ..... show `files` (sourced or not sourced))
- `q` ......... |`q`uit
- `1`,`ali` .... | Alias
- `2`,`cond` ... | Condition
- `3`,`core` ... | Core
- `4`,`ex` ..... | Example
- `5`,`pri` .... | Print
- `6`,`user` ... | User facing
- `7`,`util` ... | Utilities
- `8`,`a` ...... | All
- `9`,`q` ...... | quit

Show files:

- `f1` ......... | sourced files
- `f2` ......... | not sourced files

0 comments on commit 2cd9fb1

Please sign in to comment.