diff --git a/README.md b/README.md index 3c10d55..f0ac28e 100644 --- a/README.md +++ b/README.md @@ -27,14 +27,14 @@ Available Commands: set-key Set the key for the current vault reveal-key Reveal the lockgit key for the current repo delete-key Delete the key for the current vault - add Add files to the vault - rm Remove files and globs from the vault + add Add files and glob patterns to the vault + rm Remove files and globs patterns from the vault status Check if tracked files match the ones in the vault commit Commit changes of tracked files to the vault open Decrypt and restore secrets in the vault close Delete plaintext secrets ls List the files in the lockgit vault - globs List all saved glob patterns + globs List the saved glob patterns in the vault help Help about any command ``` diff --git a/pkg/cmd/add.go b/pkg/cmd/add.go index 27d1873..6af9b91 100644 --- a/pkg/cmd/add.go +++ b/pkg/cmd/add.go @@ -29,7 +29,7 @@ import ( // addCmd represents the add command var addCmd = &cobra.Command{ Use: "add ...", - Short: "Add files to the vault", + Short: "Add files and glob patterns to the vault", Long: `Add files to the vault, either individually or with a glob pattern. For each input, if it matches a file exactly, only that single will be added to the vault. If the input matches a diff --git a/pkg/cmd/globs.go b/pkg/cmd/globs.go index 6fb9d65..b3a5461 100644 --- a/pkg/cmd/globs.go +++ b/pkg/cmd/globs.go @@ -30,8 +30,8 @@ import ( // globsCmd represents the globs command var globsCmd = &cobra.Command{ Use: "globs", - Short: "List all saved glob patterns", - Long: "List all saved glob patterns.\n\n" + globHelp, + Short: "List the saved glob patterns in the vault", + Long: "List the saved glob patterns in the vault.\n\n" + globHelp, Aliases: []string{"glob"}, diff --git a/pkg/cmd/rm.go b/pkg/cmd/rm.go index 341e1ed..0bcad48 100644 --- a/pkg/cmd/rm.go +++ b/pkg/cmd/rm.go @@ -28,10 +28,12 @@ import ( // rmCmd represents the rm command var rmCmd = &cobra.Command{ Use: "rm ...", - Short: "Remove files and globs from the vault", - Long: `Remove files and globs from the vault + Short: "Remove files and globs patterns from the vault", + Long: `Remove files and globs patterns from the vault -For each input, if it matches a previously saved glob pattern exactly, that pattern and all files which match it will be removed from the vault. Otherwise, if the input matches a file in the vault exactly, that file will be removed from the vault. +For each input, if it matches a previously saved glob pattern exactly, that pattern and all files which match it will be +removed from the vault. Otherwise, if the input matches a file in the vault exactly, that file will be removed from the +vault. ` + globHelp,