mirror of
https://github.com/charmbracelet/gum
synced 2024-05-08 01:06:37 +02:00
docs: show usage with skate
(#136)
This commit is contained in:
parent
08346909a9
commit
7a1a91b4e0
16
README.md
16
README.md
|
@ -430,6 +430,22 @@ git log --oneline | gum filter | cut -d' ' -f1 # | copy
|
|||
<img src="https://stuff.charm.sh/gum/pick-commit.gif" alt="Picking a commit with gum filter" />
|
||||
</picture>
|
||||
|
||||
#### Skate Passwords
|
||||
|
||||
Build a simple (encrypted) password selector with [Skate](https://github.com/charmbracelet/skate).
|
||||
|
||||
Save all your passwords to [Skate](https://github.com/charmbracelet/skate) with `skate set github@pass.db PASSWORD`, etc...
|
||||
|
||||
```
|
||||
skate list -k | gum filter | xargs skate get
|
||||
```
|
||||
|
||||
<picture>
|
||||
<source media="(max-width: 600px)" srcset="https://stuff.charm.sh/gum/skate-pass.gif">
|
||||
<source media="(min-width: 600px)" width="600" srcset="https://stuff.charm.sh/gum/skate-pass.gif">
|
||||
<img src="https://stuff.charm.sh/gum/skate-pass.gif" alt="Selecting a skate value with gum" />
|
||||
</picture>
|
||||
|
||||
#### Choose packages to uninstall
|
||||
|
||||
List all packages installed by your package manager (we'll use `brew`) and
|
||||
|
|
7
examples/skate.sh
Executable file
7
examples/skate.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Building a simple `skate` TUI with gum to allow you to select a database and
|
||||
# pick a value from skate.
|
||||
|
||||
DATABASE=$(skate list-dbs | gum choose)
|
||||
skate list --keys-only "$DATABASE" | gum filter | xargs -I {} skate get {}"$DATABASE"
|
Loading…
Reference in a new issue