docs: show usage with skate (#136)

This commit is contained in:
Maas Lalani 2022-08-30 12:24:11 -04:00 committed by GitHub
parent 08346909a9
commit 7a1a91b4e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View file

@ -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
View 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"