'zrepl version' and 'zrepl control version' subcommand + maintainer README

Version is autodetected on build using git
If it cannot be detected with git, an override must be provided.

For tracability of distros, the distroy packagers should override as
well, which is why I added a README entry for package mainatiners.

refs #35
This commit is contained in:
Christian Schwarz
2017-11-18 20:34:28 +01:00
parent d59426a8cc
commit 896f31bbf3
7 changed files with 154 additions and 15 deletions

View File

@ -37,6 +37,7 @@ func doDaemon(cmd *cobra.Command, args []string) {
log := logger.NewLogger(conf.Global.logging.Outlets, 1*time.Second)
log.Info(NewZreplVersionInformation().String())
log.Debug("starting daemon")
ctx := context.WithValue(context.Background(), contextKeyLog, log)
ctx = context.WithValue(ctx, contextKeyLog, log)