forked from toolshed/abra
		
	fix: skip example && fix generate
				
					
				
			This commit is contained in:
		| @ -47,12 +47,14 @@ keys configured on your account.`, | |||||||
| 			recipeName = args[0] | 			recipeName = args[0] | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		r := recipe.Get(recipeName) |  | ||||||
|  |  | ||||||
| 		if recipeName != "" { | 		if recipeName != "" { | ||||||
| 			internal.ValidateRecipe(args, cmd.Name()) | 			internal.ValidateRecipe(args, cmd.Name()) | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|  | 		if err := catalogue.EnsureCatalogue(); err != nil { | ||||||
|  | 			log.Fatal(err) | ||||||
|  | 		} | ||||||
|  |  | ||||||
| 		if !internal.Chaos { | 		if !internal.Chaos { | ||||||
| 			if err := catalogue.EnsureIsClean(); err != nil { | 			if err := catalogue.EnsureIsClean(); err != nil { | ||||||
| 				log.Fatal(err) | 				log.Fatal(err) | ||||||
| @ -89,6 +91,14 @@ keys configured on your account.`, | |||||||
| 				continue | 				continue | ||||||
| 			} | 			} | ||||||
|  |  | ||||||
|  | 			// NOTE(d1): the "example" recipe is a temporary special case | ||||||
|  | 			// https://git.coopcloud.tech/toolshed/organising/issues/666 | ||||||
|  | 			if recipeMeta.Name == "example" { | ||||||
|  | 				catlBar.Add(1) | ||||||
|  | 				continue | ||||||
|  | 			} | ||||||
|  |  | ||||||
|  | 			r := recipe.Get(recipeMeta.Name) | ||||||
| 			versions, err := r.GetRecipeVersions() | 			versions, err := r.GetRecipeVersions() | ||||||
| 			if err != nil { | 			if err != nil { | ||||||
| 				log.Warn(err) | 				log.Warn(err) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user