Repository navigation
Releases: Pedrocrlx/programming-2-PEDRO
Release list
Tasty30m CLI
-
Search Recipes: Users can search for recipes based on an ingredient or recipe name by providing a query. The results are displayed in the console in a tabular format for easy reading.
-
Save Recipes: Users have the option to save the recipes in markdown files by using the --save flag. The files are saved in a folder named after the query.
-
Create Folders: If the specified folder does not exist, it is created automatically. If the folder already exists, the program throws a customized error message.
-
Console Output: Recipe results are displayed using console.table for a structured and readable output.
-
Help Command: A --help flag has been added to display usage instructions, including details about how to search for recipes and save them.
-
String Truncation: The names and descriptions of recipes are truncated to fit neatly in the console table.
-
Error Handling: Enhanced error handling ensures that users receive informative messages when something goes wrong, such as when a directory already exists.