This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 163
New command, 'Hungry' #221
Merged
Merged
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.Composition; | ||
using System.IO; | ||
using Pretzel.Logic.Extensions; | ||
|
||
namespace Pretzel.Commands | ||
{ | ||
[PartCreationPolicy(CreationPolicy.Shared)] | ||
[CommandInfo(CommandName = "hungry")] | ||
public sealed class HungryCommand : ICommand | ||
{ | ||
|
||
|
||
private string recipe = @"===== Ingredients ====== | ||
|
||
== Dough==== | ||
2 ½ cups Plain Flour | ||
½ teaspoon salt | ||
1 teaspoon sugar | ||
2 ¼ teaspoons dried yeast | ||
1 cup warm water | ||
|
||
== Topping==== | ||
½ cup warm water | ||
2 tablespoons baking soda | ||
coarse salt(sea salt, for example) | ||
2 tablespoons unsalted butter, melted OR about a tablespoon of olive oil | ||
If you want to make sweet pretzels rather than savoury/traditional pretzels, replace the coarse salt topping with a mixture of cocoa, cinnamon and a little icing sugar. | ||
|
||
|
||
===== Process ====== | ||
1. Place all of the dough ingredients into a bowl, and beat till well-combined.Knead the dough, for about 5 minutes, till it's soft, smooth, and quite slack. | ||
|
||
2. Flour the dough in a bowl, cover and allow it to rest for 30 minutes. | ||
|
||
3. Preheat your oven to 240°C (fan forced, 260c fanless). | ||
|
||
4. Prepare two baking sheets/trays by spraying them with oil spray, or lining them with baking paper. | ||
|
||
5. Transfer the dough to a lightly greased work surface, and divide it into eight equal pieces (about 70g each). Allow the pieces to rest, uncovered, for 5 minutes. | ||
|
||
6. While the dough is resting, combine the 1/2 cup warm water and the baking soda, and place it in a shallow bowl.Make sure the baking soda is thoroughly dissolved; if it isn't, it'll make your pretzels splotchy. | ||
|
||
7. Roll each piece of dough into a long, thin rope(about 70cm long), and twist each rope into a pretzel.Dip each pretzel in the baking soda wash(this will give the pretzels a nice, golden-brown color), and place them on the baking sheets.Sprinkle lightly with salt(or sweet pretzel mix outlined above). Allow them to rest, uncovered, for 10 minutes. | ||
|
||
8. Bake the pretzels for 7 to 8 minutes, or until they're golden brown, reversing the baking sheets halfway through. | ||
|
||
9. Remove the pretzels from the oven, and brush them thoroughly with the melted butter(or oil). | ||
|
||
|
||
Eat the pretzels warm, or reheat them in an oven or microwave."; | ||
|
||
public void Execute(IEnumerable<string> arguments) | ||
{ | ||
Tracing.Info(recipe); | ||
} | ||
|
||
public void WriteHelp(TextWriter writer) | ||
{ | ||
writer.Write(recipe); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a little bit annoying when one try to understand how to use pretzel and show help...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made it less obnoxious by describing when you should be using the command, ala parameters.