fix: use charmbracelet/glamour

This commit is contained in:
Maas Lalani 2022-07-26 22:10:23 -04:00
parent fa3d3f5404
commit 8d7fed5ac1
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000
3 changed files with 4 additions and 4 deletions

View file

@ -149,7 +149,7 @@ Prompt for input with a simple command.
gum input > answer.text
```
<img src="https://stuff.charm.sh/gum/input.gif?" width="600" alt="Shell running gum input typing Not much, you?" />
<img src="https://stuff.charm.sh/gum/input_1.gif" width="600" alt="Shell running gum input typing Not much, you?" />
#### Write
@ -210,7 +210,7 @@ Confirm whether to perform an action. Exits with code `0` (affirmative) or `1`
gum confirm && rm file.txt || echo "File not removed"
```
<img src="https://stuff.charm.sh/gum/confirm.gif" width="600" alt="Shell running gum confirm" />
<img src="https://stuff.charm.sh/gum/confirm_1.gif" width="600" alt="Shell running gum confirm" />
#### Spin

2
go.mod
View file

@ -14,5 +14,3 @@ require (
github.com/muesli/termenv v0.11.1-0.20220212125758-44cd13922739
github.com/sahilm/fuzzy v0.1.0
)
replace github.com/charmbracelet/glamour => ../glamour

2
go.sum
View file

@ -16,6 +16,8 @@ github.com/charmbracelet/bubbles v0.13.1-0.20220708023448-746ec595c3d1/go.mod h1
github.com/charmbracelet/bubbletea v0.21.0/go.mod h1:GgmJMec61d08zXsOhqRC/AiOx4K4pmz+VIcRIm1FKr4=
github.com/charmbracelet/bubbletea v0.22.0 h1:E1BTNSE3iIrq0G0X6TjGAmrQ32cGCbFDPcIuImikrUc=
github.com/charmbracelet/bubbletea v0.22.0/go.mod h1:aoVIwlNlr5wbCB26KhxfrqAn0bMp4YpJcoOelbxApjs=
github.com/charmbracelet/glamour v0.5.1-0.20220714174944-07125e934fe1 h1:bWmPZ6Y6e13YD7Z+mDK1hTTlKPDG5/Iva8VU45wT7PQ=
github.com/charmbracelet/glamour v0.5.1-0.20220714174944-07125e934fe1/go.mod h1:hcyXkEPyH1DLkez8Y/4JTrkAR1OGg7twkW2RMurKhVo=
github.com/charmbracelet/harmonica v0.2.0/go.mod h1:KSri/1RMQOZLbw7AHqgcBycp8pgJnQMYYT8QZRqZ1Ao=
github.com/charmbracelet/lipgloss v0.5.0 h1:lulQHuVeodSgDez+3rGiuxlPVXSnhth442DATR2/8t8=
github.com/charmbracelet/lipgloss v0.5.0/go.mod h1:EZLha/HbzEt7cYqdFPovlqy5FZPj0xFhg5SaqxScmgs=