...
1 package setup
2
3 import (
4 "flag"
5
6 "edge-infra.dev/pkg/sds/emergencyaccess/config"
7 )
8
9 const (
10 confJSONDataDir = "rcli-res-data-dir"
11 )
12
13 type RulesConfig struct {
14 SQL config.SQLConfig
15
16 JSONDataDir string
17 }
18
19 func (rc *RulesConfig) BindFlags(flags *flag.FlagSet) {
20 flags.StringVar(
21 &rc.JSONDataDir,
22 confJSONDataDir,
23 rc.JSONDataDir,
24 "Optional. Sets the directory to read files when using JSON based storage mode",
25 )
26
27 rc.SQL.BindFlags(flags)
28 }
29
View as plain text