syncthing/lib/syncthing
André Colomb 100870e142
cmd/syncthing: Implement generate as a subcommand with optional API credential setting (fixes #8021) (#8043)
Accept a subcommand as an alternative to the --generate option.  It
accepts a custom config directory through either the --home or
--config options, using the default location if neither is given.

Add the options --gui-user and --gui-password to "generate", but not
the "serve --generate" option form.  If either is given, an existing
config will not abort the command, but rather load, modify and save it
with the new credentials.  The password can be read from standard
input by passing only a single dash as argument.

Config modification is skipped if the value matches what's already in
the config.

* cmd/syncthing: Utilize lib/locations package in generate().
Instead of manually joining paths with "magic" file names, get them
from the centralized locations helper lib.

* cmd/syncthing: Simplify logging for --generate option.
Visible change: No more timestamp prefixes.
2021-11-18 22:57:59 +01:00
..
auditservice_test.go all: Implement suture v4-api (#6947) 2020-11-17 13:19:04 +01:00
auditservice.go all: Implement suture v4-api (#6947) 2020-11-17 13:19:04 +01:00
debug.go lib/db: Make database GC a service, stop on Stop() (#6518) 2020-04-12 10:26:57 +02:00
superuser_unix.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
superuser_windows.go all: Fix Microsoft documentation links in code comments (#7387) 2021-02-20 14:56:45 +01:00
syncthing_test.go lib/syncthing: Clean up / refactor LoadOrGenerateCertificate() utility function. (#8025) 2021-11-07 23:59:48 +01:00
syncthing.go all: Clarify 'Cleaning data for folder' log message (#7937) 2021-09-10 09:56:44 +02:00
time_android.go lib/syncthing: Set system timezone on android (#7878) 2021-08-09 09:27:14 +02:00
utils.go cmd/syncthing: Implement generate as a subcommand with optional API credential setting (fixes #8021) (#8043) 2021-11-18 22:57:59 +01:00
verboseservice.go all: Implement suture v4-api (#6947) 2020-11-17 13:19:04 +01:00