cmd/syncthing: Add decrypt subcommand (#7332)

This adds the `syncthing decrypt` subcommand that is used to
(offline-)decrypt or just verify the contents of an encrypted folder.
This commit is contained in:
Jakob Borg
2021-02-12 08:38:43 +01:00
committed by GitHub
parent f2e9b40ad1
commit 55afa625fc
4 changed files with 275 additions and 2 deletions
+3 -1
View File
@@ -31,6 +31,7 @@ import (
"time"
"github.com/alecthomas/kong"
"github.com/syncthing/syncthing/cmd/syncthing/decrypt"
"github.com/syncthing/syncthing/lib/build"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/db"
@@ -129,7 +130,8 @@ var (
// The cli struct is the main entry point for the command line parser. The
// commands and options here are top level commands to syncthing.
var cli struct {
Serve serveOptions `cmd:"" help:"Run Syncthing"`
Serve serveOptions `cmd:"" help:"Run Syncthing"`
Decrypt decrypt.CLI `cmd:"" help:"Decrypt or verify an encrypted folder"`
}
// serveOptions are the options for the `syncthing serve` command.