mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-18 04:40:03 +02:00
tools: cleanup and refactor to make code more readable.
This commit is contained in:
parent
ea5b2b8fc2
commit
8b8867394f
6 changed files with 341 additions and 328 deletions
14
cmd/tools/flags.go
Normal file
14
cmd/tools/flags.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
import "github.com/spf13/pflag"
|
||||
|
||||
func RedisFlags() *pflag.FlagSet {
|
||||
set := pflag.FlagSet{}
|
||||
set.String("redis-url", "127.0.0.1:6379", "host:port to the redis server")
|
||||
set.String("redis-user", "", "User to use when authenticating to the server")
|
||||
set.String("redis-pw", "", "Password to use when authenticating to the server")
|
||||
set.Int("redis-db", 0, "What redis database we should connect to.")
|
||||
set.String("prefix", "ship", "redis prefix")
|
||||
set.String("chain_id", "1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4", "chain id")
|
||||
return &set
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue