Migrate storage path to options.StorageOpt struct
This commit is contained in:
parent
8848d0ed94
commit
4bbc85e1b4
17
pkg/cli/options/script_runner.go
Normal file
17
pkg/cli/options/script_runner.go
Normal file
@ -0,0 +1,17 @@
|
||||
package options
|
||||
|
||||
type (
|
||||
StorageOpt struct {
|
||||
Path string `env:"STORAGE_PATH"`
|
||||
}
|
||||
)
|
||||
|
||||
func Storage(pfix string) (o *StorageOpt) {
|
||||
o = &StorageOpt{
|
||||
Path: "var/store",
|
||||
}
|
||||
|
||||
fill(o, pfix)
|
||||
|
||||
return
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user