Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence spurious warnings. Add warning on empty block #3

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

preston-evans98
Copy link
Member

This commit silences warnings in two cases:

  • On the first lang tag of a code block
  • When the tag is the tag marking a block for bashtestmd to compile

It adds a new warning when a code block is tagged for bashtestmd but does not include any commands.

$ bashtestmd --input examples/demo-rollup/README.md --output demo-rollup-readme.sh --tag test-ci

Warning: could not find command in block`:
```
export SOV_PROVER_MODE=execute
```
^^^^^ remove the tag test-ci from the block or add a command beginning with `$ ` to fix this warning

This commit silences warnings in two cases:
- On the first `lang` tag of a code block
- When the tag is the tag marking a block for bashtestmd to compile

It adds a new warning when a code block is tagged for bashtestmd but
does not include any commands.
Copy link
Member

@neysofu neysofu left a comment

Choose a reason for hiding this comment

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

Nice!

@neysofu
Copy link
Member

neysofu commented Mar 25, 2024

Fixes #1.

@neysofu neysofu merged commit d8e2ca2 into main Mar 25, 2024
3 checks passed
@neysofu neysofu deleted the preston/warns branch March 25, 2024 18:13
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.

2 participants