lockbox

password manager
Log | Files | Refs | README | LICENSE

commit d68c5970207d286dd50ff0694f216368b98f8cc4
parent 6f16f94d5721285bd4c41e4669e3ebdb32159809
Author: Sean Enck <sean@ttypty.com>
Date:   Sat,  7 Dec 2024 11:26:47 -0500

cleanup, indicate what the value represents

Diffstat:
Minternal/config/toml.go | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/internal/config/toml.go b/internal/config/toml.go @@ -126,7 +126,16 @@ func generateDetailText(data printer) (string, error) { } t, _ := data.toml() var text []string - for _, line := range []string{fmt.Sprintf("environment: %s", key), fmt.Sprintf("description:\n%s\n", description), fmt.Sprintf("requirement: %s", requirement), fmt.Sprintf("option: %s", strings.Join(allow, "|")), fmt.Sprintf("default: %s", value), fmt.Sprintf("toml: %s", t)} { + for _, line := range []string{ + fmt.Sprintf("environment: %s", key), + fmt.Sprintf("description:\n%s\n", description), + fmt.Sprintf("requirement: %s", requirement), + fmt.Sprintf("option: %s", strings.Join(allow, "|")), + fmt.Sprintf("default: %s", value), + fmt.Sprintf("type: %s", t), + "", + "NOTE: the following value is NOT a default, it is an empty TOML placeholder", + } { for _, comment := range strings.Split(line, "\n") { text = append(text, fmt.Sprintf("# %s", comment)) }