Skip to content

Commit e45af68

Browse files
committed
feat(guide): display tool description and homepage in upgrade prompts
- Load description and homepage from catalog using catalog_get_property - Display description below tool name if available - Display homepage as OSC8 hyperlink if available - Helps users understand what tools are before installing/upgrading
1 parent 51011d2 commit e45af68

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/guide.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ process_tool() {
9696
# Get metadata from catalog (with defaults)
9797
local display="$(catalog_get_guide_property "$tool" display_name "$tool")"
9898
local install_action="$(catalog_get_guide_property "$tool" install_action "")"
99+
local description="$(catalog_get_property "$tool" description)"
100+
local homepage="$(catalog_get_property "$tool" homepage)"
99101

100102
# Check if up-to-date
101103
if [ -n "$is_up_to_date" ] && [ -n "$installed" ]; then
@@ -108,6 +110,8 @@ process_tool() {
108110

109111
# Prompt for installation/update
110112
printf "\n==> %s %s\n" "$icon" "$display"
113+
[ -n "$description" ] && printf " %s\n" "$description"
114+
[ -n "$homepage" ] && printf " Homepage: %s\n" "$(osc8 "$homepage" "$homepage")"
111115
printf " installed: %s via %s\n" "${installed:-<none>}" "${method:-unknown}"
112116
printf " target: %s\n" "$(osc8 "$url" "${latest:-<unknown>}")"
113117

0 commit comments

Comments
 (0)