From 0e190f358f64c7d7226419bbc731deedd67cde8e Mon Sep 17 00:00:00 2001 From: Julien WITTOUCK Date: Thu, 18 Jun 2026 15:38:03 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20:=20add=20last=20demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/07-paillettes/demo.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 demo/07-paillettes/demo.sh diff --git a/demo/07-paillettes/demo.sh b/demo/07-paillettes/demo.sh new file mode 100755 index 0000000..b5d9633 --- /dev/null +++ b/demo/07-paillettes/demo.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env fish +mise env -s fish | source + +set -l g (set_color a6d189) +set -l b (set_color 8caaee) +set -l s '#8caaee' +set -l n (set_color normal) + +gum style --foreground "$s" --border double --padding "1 2" --margin "1" "Des paillettes — gum" +gum spin --spinner.foreground "$s" --spinner dot --title " " -- fish -c read + +echo "$g❯$b gum style — bordures, couleurs, padding$n" +gum style --foreground 212 --border rounded --padding "1 2" "Hello from gum!" +gum spin --spinner.foreground "$s" --spinner dot --title " " -- fish -c read + +echo +echo "$g❯$b gum table — données structurées$n" +printf '%s\n' "Commande,Rôle" "gum style, Texte stylisé" "gum table, Tableaux" "gum pager, Pagination" "gum choose, Menus" "gum confirm, Confirmations" "gum spin, Spinners" | gum table -p -s "," --columns "Commande,Rôle" --widths 14,30 --border rounded +gum spin --spinner.foreground "$s" --spinner dot --title " " -- fish -c read + +echo +echo "$g❯$b gum pager — paginer un fichier$n" +batcat -p ~/.gitconfig -- 2.51.2