From e3e8d705fed7a3aade520ad83cc7c3d734c3e058 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Mon, 18 Nov 2024 16:47:04 -0800 Subject: [PATCH] defaults for file paths (and env vars) --- cmd/rainbow/main.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/cmd/rainbow/main.go b/cmd/rainbow/main.go index 618637ce5..b3ebd6837 100644 --- a/cmd/rainbow/main.go +++ b/cmd/rainbow/main.go @@ -55,14 +55,16 @@ func run(args []string) { EnvVars: []string{"ATP_RELAY_HOST", "RAINBOW_RELAY_HOST"}, }, &cli.StringFlag{ - Name: "persist-db", - Value: "", - Usage: "path to persistence db", + Name: "persist-db", + Value: "./rainbow.db", + Usage: "path to persistence db", + EnvVars: []string{"RAINBOW_DB_PATH"}, }, &cli.StringFlag{ - Name: "cursor-file", - Value: "", - Usage: "write upstream cursor number to this file", + Name: "cursor-file", + Value: "./rainbow-cursor", + Usage: "write upstream cursor number to this file", + EnvVars: []string{"RAINBOW_CURSOR_PATH"}, }, &cli.StringFlag{ Name: "api-listen",