From a5d67b078386841a4fafcf4486d586a61c9f1a18 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 18 Apr 2012 15:36:37 -0400 Subject: [PATCH] readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 4d887df..fe15bfe 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,15 @@ cucumber -f Cucumber::StepWriter --out features/step_definitions Then `features/step_definitions/given/i_set_something_up.rb` will be generated. +If you want to fire an action after steps are generated, like open a directory with +the list of files so you can rearrange them, add a hook to Cucumber::StepWriter: + +``` ruby +Cucumber::StepWriter.after_write do |dir| + system %{open #{dir}} +end +``` + TODO: * If you want it to generate for different languages, I take pull requests.