diff --git a/pkg/micro/runtime/options.go b/pkg/micro/runtime/options.go index 513d86aa3..bfead76a5 100644 --- a/pkg/micro/runtime/options.go +++ b/pkg/micro/runtime/options.go @@ -1,6 +1,7 @@ package runtime import ( + "github.com/micro/cli/v2" gorun "github.com/micro/go-micro/v2/runtime" "github.com/owncloud/ocis-pkg/v2/log" ) @@ -10,6 +11,7 @@ type Options struct { Services []string Logger log.Logger MicroRuntime *gorun.Runtime + Context *cli.Context } // Option undocummented @@ -46,3 +48,10 @@ func MicroRuntime(rt *gorun.Runtime) Option { o.MicroRuntime = rt } } + +// Context option +func Context(c *cli.Context) Option { + return func(o *Options) { + o.Context = c + } +}