From 3e198c78f14a3c5cdc7d14bfd288acb76d036e05 Mon Sep 17 00:00:00 2001 From: daijro Date: Mon, 5 Aug 2024 20:46:54 -0500 Subject: [PATCH] Fixes for launcher - Do not raise error when no config is passed - Renamed module to 'launch' --- launcher/go.mod | 2 +- launcher/main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/launcher/go.mod b/launcher/go.mod index d86df14..e581c2c 100644 --- a/launcher/go.mod +++ b/launcher/go.mod @@ -1,4 +1,4 @@ -module camoufox-launcher +module launch go 1.22.5 diff --git a/launcher/main.go b/launcher/main.go index 34ba593..7499966 100644 --- a/launcher/main.go +++ b/launcher/main.go @@ -47,9 +47,9 @@ func parseArgs(args []string) (string, []string) { } } + // If no config data is provided, fallback to an empty object if configPath == "" { - fmt.Println("Usage: ./launch --config [...additional args]") - os.Exit(1) + configPath = "{}" } return configPath, remainingArgs