forked from toolshed/abra
refactor(recipe): rename Recipe2 -> Recipe
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user