Skip to content

Commit

Permalink
fix: log message convention
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <[email protected]>
  • Loading branch information
vladdoster committed Dec 4, 2023
1 parent 7a9d3d2 commit 2ced5da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions :za-linkman-atclone-handler
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi

if (( ${+ICE[lman]} )); then
[[ -d ${ZPFX}/man/man1 ]] || {
+zinit-message "{w} linkman annex: Missing {url}${ZPFX}/man/man1{rst}, not installing man pages" && return
+zinit-message "{w} {b}linkman{rst}: Missing {url}${ZPFX}/man/man1{rst}, not installing man pages" && return
}
local manfiles=${dir}/**/*(.[1-9]|.[1-9].gz)(N.)
declare -a manfile installed attempted failed
Expand All @@ -29,10 +29,10 @@ if (( ${+ICE[lman]} )); then

if (( !OPTS[opt_-q,--quiet] )); then
if (( ${#installed} )); then
+zinit-message "{m} linkman annex: Installed man page${${${#installed}/1/}:+s}: ${(j:, :)installed}"
+zinit-message "{m} {b}linkman{rst}: Installed man page${${${#installed}/1/}:+s}: ${(j:, :)installed}"
fi
if (( ${#failed} )); then
+zinit-message "{e} linkman annex: Failed to install man page${${${#failed}/1/}:+s}: ${(j:, :)failed}"
+zinit-message "{e} {b}linkman{rst}: Failed to install man page${${${#failed}/1/}:+s}: ${(j:, :)failed}"
fi
fi
fi
6 changes: 3 additions & 3 deletions :za-linkman-atdelete-handler
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi

if (( ${+ICE[lman]} )); then
if [[ ! -d ${ZPFX}/man/man1 ]]; then
+zinit-message "{w} linkman annex: Missing {url}${ZPFX}/man/man1{rst}, not deleting man page(s)" && return
+zinit-message "{w} {b}linkman{rst}: Missing {url}${ZPFX}/man/man1{rst}, not deleting man page(s)" && return
fi
local manfiles=${dir}/**/*(.[1-9]|.[1-9].gz)(N.)
declare -a manfile installed attempted failed
Expand All @@ -29,10 +29,10 @@ if (( ${+ICE[lman]} )); then

if (( !OPTS[opt_-q,--quiet] )); then
if (( ${#installed} )); then
+zinit-message "{m} linkman annex: Removed man page${${${#installed}/1/}:+s}: ${(j:, :)installed}"
+zinit-message "{m} {b}linkman{rst}: Removed man page${${${#installed}/1/}:+s}: ${(j:, :)installed}"
fi
if (( ${#failed} )); then
+zinit-message "{e} linkman annex: Failed to remove man page${${${#failed}/1/}:+s}: ${(j:, :)failed}"
+zinit-message "{e} {b}linkman{rst}: Failed to remove man page${${${#failed}/1/}:+s}: ${(j:, :)failed}"
fi
fi
fi

0 comments on commit 2ced5da

Please sign in to comment.