Skip to content

Commit

Permalink
defaults for file paths (and env vars)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Nov 19, 2024
1 parent 2ddae12 commit e3e8d70
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cmd/rainbow/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e3e8d70

Please sign in to comment.