From afbcdc343d787f211712fb5714c18bc2f5720768 Mon Sep 17 00:00:00 2001 From: Arvid Bjurklint Date: Mon, 19 Aug 2024 01:05:41 +0200 Subject: [PATCH] Add how to install, run and test it --- README.md | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 4d4a44c..f71fe23 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,29 @@ # Pole (vault) +Browse secrets in vault in the terminal. To do it, do: + +```sh +git clone +go install . +export VAULT_ADDR=https://my-vault.com +export VAULT_TOKEN=secret-token +pole3 ``` -mountA - dirA - secret1 - secret2 -``` -Read all secrets under mountA concurrently. +Navigate secrets and mounts with the arrow keys. + +## Development +To start and populate a local vault server, run + +```sh +go run dev-vault/main.go ``` -LIST mountA - LIST dirA - GET dirA/secret1 - GET secret2 + +Set the environment with + +```sh +dev-vault/env.sh ``` -Wait until this is done to visualize the data. +and run `go run main.go` to test it.