Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Oct 26, 2023
1 parent 208b298 commit f3b7e41
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ describe('generator test', () => {
[.withYoRcConfig('generator-foo.bar', { : {} })] // same as above
[.commitFiles()] // commit mem-fs files to disk
[.onGenerator(gen => {})] // do something with the generator
[.onEnvironment(env => {})] // do something with the environment
[.build(runContext => { // instantiates Environment/Generator
[runContext.env...] // does something with the environment
[runContext.generator...] // does something with the generator
})];
[.onEnvironment(env => {})]; // do something with the environment

[await result.create('another-generator').run();] // instantiates a new RunContext at the same directory
);
Expand Down

0 comments on commit f3b7e41

Please sign in to comment.