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

Flag to abort if a code block returns an error #190

Open
mmlb opened this issue Sep 17, 2022 · 1 comment
Open

Flag to abort if a code block returns an error #190

mmlb opened this issue Sep 17, 2022 · 1 comment

Comments

@mmlb
Copy link

mmlb commented Sep 17, 2022

Is your feature request related to a problem? Please describe.
I'd like to use slides sort of like a runnable playbook. Its actually not as crazy at it sounds :) (and I'd like to discuss this more).

Describe the solution you'd like
I'd like for code blocks to do some work and if an error is returned by a code block (think bash returning an error) slide prints it and stops moving forward in the presentation.

Describe alternatives you've considered
In terms of slide, I've only thought about printing a flashy warning POSSIBLY IN ALL CAPS that continuing is strongly not advised.

Additional context
I don't think any are needed but can show some snippets of what I'd like to use this feature with if necessary.

@mmlb
Copy link
Author

mmlb commented Sep 17, 2022

I'm sort of thinking a stop-on-code-block-error (or some other name) in the front-matter.

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

No branches or pull requests

1 participant