No longer enforce version matching between daemon and cli (#4271)

* No longer check version matching between daemon and cli

* Add Log Service Handler and report if the daemon is running in background mode
This commit is contained in:
Todd authored and GitHub committed 2024-01-24 16:26:15 -08:00
1 parent 27bf15f3f3
commit e32a25f2a4
8 files changed
+198 -66

No files matched your search

+1
View File
@@ -201,6 +201,7 @@ func (c *StartCommand) Run(args []string) int {
LogWriter: io.MultiWriter(writers...),
LogFileName: logFileName,
DotDirectory: dotDir,
RunningInBackground: os.Getenv(backgroundEnvName) == backgroundEnvVal,
}
srv, err := daemon.New(ctx, cfg)
@@ -144,6 +144,9 @@ func printStatusTable(status *daemon.StatusResult) string {
if len(status.LogLocation) > 0 {
nonAttributeMap["Log Location"] = status.LogLocation
}
if len(status.Version) > 0 {
nonAttributeMap["Version"] = status.Version
}
if status.Uptime > 0 {
nonAttributeMap["Uptime"] = status.Uptime.Round(time.Second)
}