documentation

This commit is contained in:
Hayden
2021-01-03 13:54:29 -09:00
parent 03197a139f
commit adbc126ef5
2 changed files with 22 additions and 1 deletions

View File

@@ -29,6 +29,18 @@ def pull_repo(repo):
def read_chowdown_file(recipe_file: Path) -> Recipe:
"""Parse through the yaml file to try and pull out the relavent information.
Some issues occur when ":" are used in the text. I have no put a lot of effort
into this so there may be better ways of going about it. Currently, I get about 80-90%
of recipes from repos I've tried.
Args:
recipe_file (Path): Path to the .yml file
Returns:
Recipe: Recipe class object
"""
with open(recipe_file, "r") as stream:
recipe_description: str = str
recipe_data: dict = {}
@@ -85,7 +97,6 @@ def chowdown_migrate(repo):
except:
failed_recipes.append(recipe.name)
report = {"failedImages": failed_images, "failedRecipes": failed_recipes}
return report