From 12db3891ce4e5480d52a986034a6f4e335e73125 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 6 Sep 2025 07:49:19 +0300 Subject: [PATCH] whiptail, gum, dialog: fix style guide issues and refer to each other (#17955) --- pages/common/gum.md | 5 +++-- pages/linux/dialog.md | 1 + pages/linux/whiptail.md | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/common/gum.md b/pages/common/gum.md index e0082510c0..211c2bbaff 100644 --- a/pages/common/gum.md +++ b/pages/common/gum.md @@ -1,6 +1,7 @@ # gum > Make glamorous shell scripts. +> See also: `whiptail`, `dialog`. > More information: . - Interactively pick a specific option to print to `stdout`: @@ -17,11 +18,11 @@ - Show a spinner while a command is taking place with text alongside: -`gum spin --spinner {{dot|line|minidot|jump|pulse|points|globe|moon|monkey|meter|hamburger}} --title "{{loading...}}" -- {{command}}` +`gum spin {{[-s|--spinner]}} {{dot|line|minidot|jump|pulse|points|globe|moon|monkey|meter|hamburger}} --title "{{loading...}}" -- {{command}}` - Format text to include emojis: -`gum format -t {{emoji}} "{{:smile: :heart: hello}}"` +`gum format {{[-t|--type]}} {{emoji}} "{{:smile: :heart: hello}}"` - Interactively prompt for multi-line text (`` to save) and write to `data.txt`: diff --git a/pages/linux/dialog.md b/pages/linux/dialog.md index cfe0a93c59..2945647f18 100644 --- a/pages/linux/dialog.md +++ b/pages/linux/dialog.md @@ -1,6 +1,7 @@ # dialog > Display dialog boxes on the terminal. +> See also: `gum`, `whiptail`. > More information: . - Display a message: diff --git a/pages/linux/whiptail.md b/pages/linux/whiptail.md index dd063a1e68..56910c7620 100644 --- a/pages/linux/whiptail.md +++ b/pages/linux/whiptail.md @@ -1,6 +1,7 @@ # whiptail > Display text-based dialog boxes from shell scripts. +> See also: `dialog`, `gum`. > More information: . - Display a simple message: @@ -25,4 +26,4 @@ - Display a multiple-choice menu: -`{{result_variable_name}}=$(whiptail --title "{{title}}" --menu "{{message}}" {{height_in_chars}} {{width_in_chars}} {{menu_display_height}} "{{value_1}}" "{{display_text_1}}" "{{value_n}}" "{{display_text_n}}" ..... 3>&1 1>&2 2>&3)` +`{{result_variable_name}}=$(whiptail --title "{{title}}" --menu "{{message}}" {{height_in_chars}} {{width_in_chars}} {{menu_display_height}} {{"value_1" "display_text_1" "value_2" "display_text_2" ...}} 3>&1 1>&2 2>&3)`