github.com/henvic/wedeploycli@v1.7.6-0.20200319005353-3630f582f284/command/internal/we/we.go (about)

     1  package we
     2  
     3  import "github.com/henvic/wedeploycli/config"
     4  
     5  var ctx config.Context
     6  
     7  // Context gets the context of the application global state
     8  func Context() config.Context {
     9  	return ctx
    10  }
    11  
    12  // WithContext sets the context for the application global state
    13  func WithContext(c *config.Context) {
    14  	ctx = *c
    15  }