From 6aee67259ce4ca68cfe744d24a2b48043cebcd20 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Fri, 5 Aug 2022 01:17:39 -0400 Subject: [PATCH] fix: resize images --- README.md | 85 +++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 70 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 2e67363..ccff10b 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,11 @@ A tool for glamorous shell scripts. Leverage the power of Gloss](https://github.com/charmbracelet/lipgloss) in your scripts and aliases without writing any Go code! -Shell running the ./demo.sh script + + + + Shell running the ./demo.sh script + The above example is running from a single shell script ([source](./examples/demo.sh)). @@ -85,7 +89,11 @@ DESCRIPTION=$(gum write --placeholder "Details of this change") gum confirm "Commit changes?" && git commit -m "$SUMMARY" -m "$DESCRIPTION" ``` -Running the ./examples/commit.sh script to commit to git + + + + Running the ./examples/commit.sh script to commit to git + ## Installation @@ -144,7 +152,11 @@ gum input --cursor.foreground "#FF0" --prompt.foreground "#0FF" --prompt "* " \ --placeholder "What's up?" --width 80 --value "Not much, hby?" ``` -Gum input displaying most customization options + + + + Gum input displaying most customization options + ## Interaction @@ -162,7 +174,11 @@ Prompt for sensitive input with the `--password` flag. gum input --password > password.text ``` -Shell running gum input typing Not much, you? + + + + Shell running gum input typing Not much, you? + #### Write @@ -172,7 +188,11 @@ Prompt for some multi-line text. gum write > story.text ``` -Shell running gum write typing a story + + + + Shell running gum write typing a story + #### Filter @@ -185,7 +205,11 @@ echo Cherry >> flavors.text cat flavors.text | gum filter > selection.text ``` -Shell running gum filter on different bubble gum flavors + + + + Shell running gum filter on different bubble gum flavors + #### Choose @@ -212,7 +236,11 @@ echo "What do you need from the grocery store?" cat foods.txt | gum choose --no-limit ``` -Shell running gum choose with numbers and gum flavors + + + + Shell running gum choose with numbers and gum flavors + #### Confirm @@ -223,8 +251,11 @@ Confirm whether to perform an action. Exits with code `0` (affirmative) or `1` gum confirm && rm file.txt || echo "File not removed" ``` -Shell running gum confirm - + + + + Shell running gum confirm + #### Spin @@ -235,7 +266,11 @@ automatically stop after the given command exits. gum spin --spinner dot --title "Buying Bubble Gum..." -- sleep 5 ``` -Shell running gum spin while sleeping for 5 seconds + + + + Shell running gum spin while sleeping for 5 seconds + Available spinner types include: `line`, `dot`, `minidot`, `jump`, `pulse`, `points`, `globe`, `moon`, `monkey`, `meter`, `hamburger`. @@ -252,7 +287,11 @@ gum style \ 'Bubble Gum (1ยข)' 'So sweet and so fresh!' ``` -Bubble Gum, So sweet and so fresh! + + + + Bubble Gum, So sweet and so fresh! + ## Layout @@ -275,7 +314,11 @@ BUBBLE_GUM=$(gum join "$BUBBLE" "$GUM") gum join --align center --vertical "$I_LOVE" "$BUBBLE_GUM" ``` -I LOVE Bubble Gum written out in four boxes with double borders around them. + + + + I LOVE Bubble Gum written out in four boxes with double borders around them. + ## Format @@ -302,7 +345,11 @@ For more information on template helpers, see the [Termenv docs](https://github.com/muesli/termenv#template-helpers). For a full list of named emojis see the [GitHub API](https://api.github.com/emojis). -Running gum format for different types of formats + + + + Running gum format for different types of formats + ## Examples @@ -345,7 +392,11 @@ SESSION=$(tmux list-sessions -F \#S | gum filter --placeholder "Pick session..." tmux switch-client -t $SESSION || tmux attach -t $SESSION ``` -Picking a tmux session with gum filter + + + +Picking a tmux session with gum filter + #### Pick commit hash from your Git history @@ -356,7 +407,11 @@ commit hash of the commit you select. git log --oneline | gum filter | cut -d' ' -f1 # | copy ``` -Picking a commit with gum filter + + + + Picking a commit with gum filter + #### Choose packages to uninstall