Compare commits

...

5 commits

Author SHA1 Message Date
0367e39c21
−grep
All checks were successful
/ job (push) Successful in 4m24s
2025-07-04 21:41:54 +02:00
25efbc44cf
. 2025-07-04 20:24:58 +02:00
3344390f40
targets 2025-07-04 20:18:42 +02:00
a8224fe057
gsc 2025-07-04 19:35:34 +02:00
75fa712be4
2025-07-04 17:28:03 +02:00
3 changed files with 13 additions and 15 deletions

View file

@ -516,14 +516,6 @@ a__git_re_set_hard() {
"${@}"
}
# show a commit
gsc() { a__git_show_commit "${@}"; }
a__git_show_commit() {
git \
show \
"${@}"
}
# current state of repository
gs() { a__git_status "${@}"; }
a__git_status() {
@ -533,6 +525,14 @@ a__git_status() {
"${@}"
}
# show a commit
#( gsc
a__git_show_commit() {
git \
show \
"${@}"
}
# tag a commit
gt() { a__git_tag "${@}"; }
a__git_tag() {

View file

@ -73,7 +73,7 @@ rwx_cache() {
text="$(cat "${path}")"
# all source code
RWX_CODE="${RWX_CODE}\
# ${name}
#. ${name}
${text}
"
}
@ -186,13 +186,11 @@ rwx_parse_code() {
}
rwx_parse_constants() {
printf "%s\n" "${RWX_CODE}" |
grep "${RWX_REGEX_BEGIN}${RWX_REGEX_CONSTANT}${RWX_REGEX_SET}" |
sed "s|${RWX_REGEX_TARGET_CONSTANT}|\\1|"
sed "/${RWX_REGEX_TARGET_CONSTANT}/s|${RWX_REGEX_TARGET_CONSTANT}|\\1|"
}
rwx_parse_functions() {
printf "%s\n" "${RWX_CODE}" |
grep "${RWX_REGEX_BEGIN}${RWX_REGEX_FUNCTION}${RWX_REGEX_OPEN}" |
sed "s|${RWX_REGEX_TARGET_FUNCTION}|\\1|"
sed "/${RWX_REGEX_TARGET_FUNCTION}/s|${RWX_REGEX_TARGET_FUNCTION}|\\1|"
}
# ╭──────┬─────╮

View file

@ -8,9 +8,9 @@ rwx_doc() {
while IFS= read -r line; do
case "${line}" in
"#!"*) doc="" ;;
"#"*)
"#."*)
doc=""
module="$(echo "${line}" | sed "s|# \\(.*\\)|\\1|")"
module="$(echo "${line}" | sed "s|#\\. \\(.*\\)|\\1|")"
;;
*"#"*)
[ -n "${doc}" ] && doc="${doc}