mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-19 04:50:02 +02:00
refactor cli to use cobra.
This commit is contained in:
parent
fad70e19b9
commit
59480533d3
11 changed files with 236 additions and 289 deletions
|
|
@ -1,37 +0,0 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
var redisUrlFlag = &cli.StringFlag{
|
||||
Name: "redis-url",
|
||||
Value: "127.0.0.1:6379",
|
||||
Usage: "host:port to the redis server",
|
||||
}
|
||||
|
||||
var redisUserFlag = &cli.StringFlag{
|
||||
Name: "redis-user",
|
||||
Usage: "User to use when authenticating to the server",
|
||||
}
|
||||
|
||||
var redisPasswordFlag = &cli.StringFlag{
|
||||
Name: "redis-pw",
|
||||
Usage: "Password to use when authenticating to the server",
|
||||
}
|
||||
|
||||
var redisDbFlag = &cli.IntFlag{
|
||||
Name: "redis-db",
|
||||
Value: 0,
|
||||
Usage: "What redis database we should connect to.",
|
||||
}
|
||||
|
||||
var prefixFlag = &cli.StringFlag{
|
||||
Name: "prefix",
|
||||
Value: "ship",
|
||||
}
|
||||
|
||||
var chainIdFlag = &cli.StringFlag{
|
||||
Name: "chain_id",
|
||||
Value: "1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4",
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue