Skip to content

Add sed testcase - #25

Merged
bwplotka merged 1 commit into
bwplotka:mainfrom
saswatamcode:add-sed
May 13, 2021
Merged

bwplotka merged 1 commit into
bwplotka:mainfrom
saswatamcode:add-sed

Conversation

@saswatamcode

Copy link
Copy Markdown
Collaborator

This PR adds in usage of sed with mdox-gen-exec as a testcase and mentions this in README as it's a common use case, as discussed in #19. 🙂
Resolves #18.

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
@saswatamcode
saswatamcode requested a review from bwplotka May 13, 2021 02:44
@saswatamcode saswatamcode self-assigned this May 13, 2021

@bwplotka bwplotka left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works! 🙈 LGTM, just yolo idea.

``` No newline at end of file
```

```bash mdox-gen-exec="sed -n '1,3p' ./testdata/out3.sh"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we actually need only exec, wonder, do you think just mdox= or mdox-exec= would do the work? No need for gen then? (:

@bwplotka
bwplotka merged commit d80a4ac into bwplotka:main May 13, 2021
@saswatamcode saswatamcode mentioned this pull request May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add mdox-gen-file to allow fetching from file

2 participants

⌂ 换网址