From 4bbc85e1b47972cc90b8c4bde1d453233b8dc080 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Wed, 31 Jul 2019 15:20:09 +0200 Subject: [PATCH] Migrate storage path to options.StorageOpt struct --- pkg/cli/options/script_runner.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pkg/cli/options/script_runner.go diff --git a/pkg/cli/options/script_runner.go b/pkg/cli/options/script_runner.go new file mode 100644 index 000000000..e1ab81e51 --- /dev/null +++ b/pkg/cli/options/script_runner.go @@ -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 +}