From 7a1a91b4e0393962c7f8c97ee63da6a648f29c1a Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Tue, 30 Aug 2022 12:24:11 -0400 Subject: [PATCH] docs: show usage with `skate` (#136) --- README.md | 16 ++++++++++++++++ examples/skate.sh | 7 +++++++ 2 files changed, 23 insertions(+) create mode 100755 examples/skate.sh diff --git a/README.md b/README.md index c9ec0f3..99f8dc5 100644 --- a/README.md +++ b/README.md @@ -430,6 +430,22 @@ git log --oneline | gum filter | cut -d' ' -f1 # | copy Picking a commit with gum filter +#### 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 +``` + + + + + Selecting a skate value with gum + + #### Choose packages to uninstall List all packages installed by your package manager (we'll use `brew`) and diff --git a/examples/skate.sh b/examples/skate.sh new file mode 100755 index 0000000..8d4a9db --- /dev/null +++ b/examples/skate.sh @@ -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"