From b1fee5d2661072fcc2f4e9d92c99af73d291ec60 Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Mon, 6 Oct 2025 14:32:32 +0800 Subject: [PATCH] feat(server): introduce DefaultConfigPath for streamlined configuration - Added `DefaultConfigPath` variable to manage default configuration file paths. - Updated `config` flag to use `DefaultConfigPath` for better path handling. --- cmd/server/main.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index 1f93a12f..cf6bafd8 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -21,9 +21,10 @@ import ( ) var ( - Version = "dev" - Commit = "none" - BuildDate = "unknown" + Version = "dev" + Commit = "none" + BuildDate = "unknown" + DefaultConfigPath = "" ) // init initializes the shared logger setup. @@ -58,7 +59,7 @@ func main() { flag.BoolVar(&geminiWebAuth, "gemini-web-auth", false, "Auth Gemini Web using cookies") flag.BoolVar(&noBrowser, "no-browser", false, "Don't open browser automatically for OAuth") flag.StringVar(&projectID, "project_id", "", "Project ID (Gemini only, not required)") - flag.StringVar(&configPath, "config", "", "Configure File Path") + flag.StringVar(&configPath, "config", DefaultConfigPath, "Configure File Path") flag.StringVar(&password, "password", "", "") flag.CommandLine.Usage = func() {