mirror of
https://github.com/charmbracelet/gum.git
synced 2024-09-11 06:16:03 +03: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 New Issue
Block a user