diff --git a/cmd/context.go b/cmd/context.go index 58d322af..d316897f 100644 --- a/cmd/context.go +++ b/cmd/context.go @@ -40,6 +40,7 @@ type AptlyContext struct { } var context *AptlyContext +var savedContext *AptlyContext // Check interface var _ aptly.PublishedStorageProvider = &AptlyContext{} @@ -60,6 +61,13 @@ func Fatal(err error) { panic(&FatalError{ReturnCode: returnCode, Message: err.Error()}) } +func switchContext() { + + savedContext = context + context = savedContext + +} + // Config loads and returns current configuration func (context *AptlyContext) Config() *utils.ConfigStructure { if !context.configLoaded {