| 97 | } |
| 98 | |
| 99 | type context struct { |
| 100 | // context is the context to use |
| 101 | context context2.Context |
| 102 | |
| 103 | // workingDir is the current working dir. Functions |
| 104 | // that receive this context should prefer this working directory |
| 105 | // instead of using the global one. |
| 106 | workingDir string |
| 107 | |
| 108 | // runID is the current DevSpace run id, which differs in each |
| 109 | // run of DevSpace. This can be used to save certain informations |
| 110 | // during the run. |
| 111 | runID string |
| 112 | |
| 113 | // config is the loaded DevSpace config |
| 114 | config config.Config |
| 115 | |
| 116 | // dependencies are the loaded dependencies |
| 117 | dependencies []types.Dependency |
| 118 | |
| 119 | // kubeClient is the kubernetes client |
| 120 | kubeClient kubectl.Client |
| 121 | |
| 122 | // environ is the environment provider used for executing a command |
| 123 | environ expand.Environ |
| 124 | |
| 125 | // log is the currently used logger |
| 126 | log log.Logger |
| 127 | } |
| 128 | |
| 129 | func (c *context) Environ() expand.Environ { |
| 130 | return c.environ |
nothing calls this directly
no outgoing calls
no test coverage detected