// GetCurrentContext returns the name of the currently selected context
GetCurrentContext returns the name of the currently selected context
// GetCurrentContext returns the name of the currently selected context
func GetCurrentContext(svcContext *servicecontext.Context, localizer localize.Localizer) (*servicecontext.ServiceConfig, error) {
	if svcContext.CurrentContext == "" {
		return nil, localizer.MustLocalizeError("context.common.error.notSet")
	}
	currCtx, ok := svcContext.Contexts[svcContext.CurrentContext]
	if !ok {
		return nil, localizer.MustLocalizeError("context.common.error.context.notFound", localize.NewEntry("Name", svcContext.CurrentContext))
	}
	return &currCtx, nil
}
func GetCurrentContext ( svcContext * servicecontext . Context , localizer localize . Localizer ) ( * servicecontext . ServiceConfig , error ) { if svcContext . CurrentContext == " " { return nil , localizer . MustLocalizeError ( " " ) } currCtx , ok := svcContext . Contexts [ svcContext . CurrentContext ] if ! ok { return nil , localizer . MustLocalizeError ( " " , localize . NewEntry ( " " , svcContext . CurrentContext ) ) } return & currCtx , nil }
GetCurrentContext returns the name of the currently selected context
GetCurrentContext returns the name of the currently selected context