From 4fb03cacb9ce38edb4ef85d4d209ab90df26c4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Wed, 27 May 2020 12:44:16 +0200 Subject: [PATCH] Improve UX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- README.md | 20 ++++++++++---------- secret.c | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 37adb35..9bea39f 100644 --- a/README.md +++ b/README.md @@ -72,16 +72,16 @@ Completion for secrets is only available in a trusted shell. See below. Available commands: - init Initialize secret for the current user - list List all secrets for a given passphrase - show Print a secret - new Generate a new secret - set Set a new secret - renew Regenerate an existing secret - reset Update an existing secret - pass Derivate a new secret - agent Run a process in a trusted zone - version Show version + init Initialize secret for the current user + list List all secrets for a given passphrase + show Print a secret + new Generate a new random secret + set Set a new secret + renew Regenerate an existing secret + update Update an existing secret + pass Derivate a new secret + agent Run a process in a trusted zone + version Show version All secrets are encrypted in the file `~/.secret`. You can use a different file with the `SECRET_STORE` environment variable: diff --git a/secret.c b/secret.c index 24fd656..4092ea0 100644 --- a/secret.c +++ b/secret.c @@ -665,10 +665,10 @@ main(int argc, char **argv) {"init", "Initialize secret for the current user", &s_init, .grp = 1}, {"list", "List all secrets for a given passphrase", &s_list, .grp = 1}, {"show", "Print a secret", &s_show, NULL, .grp = 1}, - {"new", "Generate a new secret", &s_do, &s_new, .grp = 1}, + {"new", "Generate a new random secret", &s_do, &s_new, .grp = 1}, {"set", "Set a new secret", &s_do, &s_set, .grp = 1}, {"renew", "Regenerate an existing secret", &s_do, &s_rnw, .grp = 1}, - {"reset", "Update an existing secret", &s_do, &s_rst, .grp = 1}, + {"update", "Update an existing secret", &s_do, &s_rst, .grp = 1}, {"pass", "Derivate a new secret", &s_pass, NULL, .grp = 1}, {"agent", "Run a process in a trusted zone", &s_agent, NULL, .grp = 1}, {"version", "Show version", &s_version, NULL, .grp = 1},