From 13243e97a383d4668f4d54358c8b1ef352292388 Mon Sep 17 00:00:00 2001 From: lew Date: Thu, 20 Nov 2025 03:17:46 +0000 Subject: [PATCH] revert(Set/Get): reduces --help text; long explanation will go into actual documentation --- cmd/get.go | 6 ++---- cmd/set.go | 11 +---------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/cmd/get.go b/cmd/get.go index 5f93a3d..22d0044 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -41,14 +41,12 @@ var getCmd = &cobra.Command{ Short: "Get a value for a key. Optionally specify a db.", Long: `Get a value for a key. Optionally specify a db. -[[ .TEMPLATES ]] can be filled by passing TEMPLATE=VALUE as an +{{ .TEMPLATES }} can be filled by passing TEMPLATE=VALUE as an additional argument after the initial KEY being fetched. For example: pda set greeting 'Hello, {{ .NAME }}!' - pda get greeting NAME=World - -Further reading: Go's text/template documentation.`, + pda get greeting NAME=World`, Aliases: []string{"g"}, Args: cobra.MinimumNArgs(1), RunE: get, diff --git a/cmd/set.go b/cmd/set.go index 056e286..565814f 100644 --- a/cmd/set.go +++ b/cmd/set.go @@ -41,16 +41,7 @@ For example: 'Hello, {{ env "USER" }}' will fetch the USER env variable. 'Hello, {{ default "World" .NAME }}' will default to World if NAME is blank. 'Hello, {{ require .NAME }}' will error if NAME is blank. - '{{ enum .NAME "Alice" "Bob" }}' allows only NAME=Alice or NAME=Bob. - -[[ .TEMPLATES ]] can be filled by passing TEMPLATE=VALUE as an -additional argument after the initial KEY being fetched. - -For example: - pda set greeting 'Hello, {{ .NAME }}!' - pda get greeting NAME=World - -Further reading: Go's text/template documentation.`, + '{{ enum .NAME "Alice" "Bob" }}' allows only NAME=Alice or NAME=Bob.`, Aliases: []string{"s"}, Args: cobra.RangeArgs(1, 2), RunE: set,