refactor(recipe): introduce Dir var
This commit is contained in:
		@ -267,11 +267,15 @@ func (r Recipe) SampleEnv() (map[string]string, error) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func Get2(name string) Recipe2 {
 | 
			
		||||
	return Recipe2{Name: name}
 | 
			
		||||
	return Recipe2{
 | 
			
		||||
		Name: name,
 | 
			
		||||
		Dir:  path.Join(config.RECIPES_DIR, name),
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Recipe2 struct {
 | 
			
		||||
	Name string
 | 
			
		||||
	Dir  string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Ensure makes sure the recipe exists, is up to date and has the latest version checked out.
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user