Add PrintPluginEnv plugin.

This commit is contained in:
jregan
2019-11-30 09:27:38 -08:00
parent d942e6fa59
commit d98af3f06a
11 changed files with 161 additions and 148 deletions

View File

@@ -53,6 +53,11 @@ func (x *PluginTestEnv) Reset() {
x.removeWorkDir()
}
// WorkDir allows inspection of the temp working directory.
func (x *PluginTestEnv) WorkDir() string {
return x.workDir
}
// BuildGoPlugin compiles a Go plugin, leaving the newly
// created object code in the right place - a temporary
// working directory pointed to by KustomizePluginHomeEnv.