* [feat] Add verbosity levels to the debug package
Use debug.V(N).Log instead of debug.Log to indicate message
verbosity (higher numbers indicate more verbose messages).
Use GOPASS_DEBUG_VERBOSE=N to control the desired level
of verbosity in the log output.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Document the verbosity env vars.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Allow negative verbosity values
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
---------
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This PR removes some unnecessary logic in the recipients removal and
adds a shortcut to remove recipients based on the Key ID instead of
looking up key fingerprints over and over again. Also it fixes an
issue where subkeys of the same key wouldn't be displayed in gopass
recipients even if they were actually present in the .gpg-id files.
Fixes#2416
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Do not omit shadowed entries in ls output
Fixes#2338
RELEASE_NOTES=[BUGFIX] Do not shadow entries behind folders.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Add shadow marker
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Adjust tests to match the new shadow behaviour
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Update list docs wrt. shadowing
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Do not mark mounts as shadowed. That's already implicit.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
* Add more comments and some other cleanup
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This commit adds a new subcommand to support symlinks within the same
mount. The command is intentionally still hidden since the support
isn't fully fleshed out, yet. Neither audit nor list know of links
and cross mount symlinks aren't supported either (and maybe never will).
RELEASE_NOTES=[ENHANCEMENT] Add gopass ln
Fixes#1820
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Fixes#1460Fixes#1462
This commit fixes broken shadowing in the new tree implementation
as well as removing the broken init flag to mounts add.
RELEASE_NOTES=[BUGFIX] Fix tree shadowing.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This commit slightly rewrites the tree implementation and removes
another unnecessary indirection.
RELEASE_NOTES=[ENHANCEMENT] Rewrite tree implementation.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>