refactor(recipe): rename Recipe2 -> Recipe

This commit is contained in:
2024-07-08 13:19:40 +02:00
parent f638b6a16b
commit f14d49cc64
21 changed files with 85 additions and 85 deletions

View File

@ -122,9 +122,9 @@ type Features struct {
SSO string `json:"sso"`
}
func Get2(name string) Recipe2 {
func Get(name string) Recipe {
dir := path.Join(config.RECIPES_DIR, name)
return Recipe2{
return Recipe{
Name: name,
Dir: dir,
SSHURL: fmt.Sprintf(config.SSH_URL_TEMPLATE, name),
@ -135,7 +135,7 @@ func Get2(name string) Recipe2 {
}
}
type Recipe2 struct {
type Recipe struct {
Name string
Dir string
SSHURL string
@ -157,7 +157,7 @@ func GetRecipesLocal() ([]string, error) {
return recipes, nil
}
func GetRecipeFeaturesAndCategory(r Recipe2) (Features, string, error) {
func GetRecipeFeaturesAndCategory(r Recipe) (Features, string, error) {
feat := Features{}
var category string