From 91a3dc9e9484c6d421814ff8e1777a12917c7a34 Mon Sep 17 00:00:00 2001 From: Ringo De Smet Date: Wed, 9 Aug 2017 08:39:58 +0200 Subject: [PATCH] Expose the context outside of the cmd package. --- cmd/context.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/context.go b/cmd/context.go index 882642a1..0e6989f8 100644 --- a/cmd/context.go +++ b/cmd/context.go @@ -29,3 +29,8 @@ func InitContext(flags *flag.FlagSet) error { return err } + +// GetContext gives access to the context +func GetContext() *ctx.AptlyContext { + return context +}