21 lines
		
	
	
		
			358 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			358 B
		
	
	
	
		
			Go
		
	
	
	
| package tmpl
 | |
| 
 | |
| import (
 | |
| 	"github.com/helmfile/helmfile/pkg/filesystem"
 | |
| )
 | |
| 
 | |
| type Context struct {
 | |
| 	preRender bool
 | |
| 	basePath  string
 | |
| 	fs        *filesystem.FileSystem
 | |
| }
 | |
| 
 | |
| // SetBasePath sets the base path for the template
 | |
| func (c *Context) SetBasePath(path string) {
 | |
| 	c.basePath = path
 | |
| }
 | |
| 
 | |
| func (c *Context) SetFileSystem(fs *filesystem.FileSystem) {
 | |
| 	c.fs = fs
 | |
| }
 |