Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Print custom host with version

Neeraj Gupta5cc4a5ed0710
diff --git a/cli/main.go b/cli/main.go
index b2f6ecb659..798b75992c 100644
--- a/cli/main.go
+++ b/cli/main.go
@@ -79,6 +79,9 @@ func main() {
// If no arguments are passed, show help
os.Args = append(os.Args, "help")
}
+ if os.Args[1] == "version" && viper.GetString("endpoint.api") != constants.EnteApiUrl {
+ log.Printf("Custom endpoint: %s\n", viper.GetString("endpoint.api"))
+ }
cmd.Execute(&ctrl, AppVersion)
}