Small fixes to the wiki
I went through the 'Using' page of the wiki and found a few things that may need to be fixed.
- Currently, the example replaces the
foostring infoo.txtwithbar, but then saves tofoo.txt.bar.txt. I think it would make sense to save either tofoo.txtor tobar.txt. - The
ex()method usesinwhich is actually a keyword, and thus results in a syntax error. It also refers toself.out_bar()which has been renamed toself.out_replace()in the rest of the example.
I can fix this and submit a PR if needed?
I can fix this and submit a PR if needed?
Absolutely, many thank in advance! :)
Done! I also figured you need an extra slash in the sed command. Should work now!
I was also wondering why you set
# Here we have one input, a "foo file":
in_foo = None
In MyFooReplacer, it seems to me that it's not necessary to set in_foo to None (at least, I see the logic of it, but the workflow ran fine without it).
In MyFooReplacer, it seems to me that it's not necessary to set in_foo to None (at least, I see the logic of it, but the workflow ran fine without it).
Yeah, this is a practice we adopted mainly for documentary purposes, to make it clearer which are the in-ports for the task, and so that it would show up when using auto-completion in the editor, to aid when designing the workflows.
Done!
Many thanks!