From 3aa08b00a1151249c6172f0739daac6be5ef857f Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 28 Jan 2024 16:37:00 +0700 Subject: all: make the path to private key static Instead of prompting user, make the private key static, located at "$XDG_CONFIG_DIR/gotp/gotp.key". Implements: https://todo.sr.ht/~shulhan/gotp/1 --- README.md | 162 +++++++++++++++++++----------------- cli.go | 141 ++++++++++--------------------- cli_test.go | 68 ++------------- config.go | 106 +++++++++++++++-------- config_test.go | 28 ++----- gotp.go | 15 ++-- testdata/cli_SetPrivateKey_test.txt | 3 - testdata/config_marshaler_test.txt | 6 -- testdata/with_private_key.conf | 3 - 9 files changed, 229 insertions(+), 303 deletions(-) diff --git a/README.md b/README.md index d606abe..13e972f 100644 --- a/README.md +++ b/README.md @@ -5,126 +5,138 @@ A command line interface to manage and generate Time-based One Time Password ## SYNOPSIS -``` -gotp -``` + gotp -## DESCRIPTION -``` -add