Don't execute certain blocks
See original GitHub issueI just want to have some blocks be documenting how to use it, and then later define how it works.
So imagine that this would work (note the first blocks don’t define a scripting language). Perhaps another thing like <!-- ignore -->
would be better, so you can have it look like bash still.
run
Run npm in any apps/app
folder, defaults to start
. To run every app in dev mode for example just do:
maid run app
maid run desktop
maid run electron
which will end up running:
cd apps/app && npm run start
cd apps/desktop && npm run start
cd apps/electron && npm run start
But you can run any arbitrary npm command inside any package here too by using the fourth argument. So, maid run app build
would run npm run build
inside apps/app
.
echo "hi"
cd apps/$1 || echo "not found" && exit 1
pwd
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:15 (9 by maintainers)
Top Results From Across the Web
Execute if block Command Tutorial - YouTube
We go over execute if block and execute if blocks (for more advanced)! New Challenge:Easy ➡️ Have sheep get killed when they...
Read more >How does /execute if blocks work? - Arqade - Stack Exchange
In order to detect if all blocks in a certain area are a certain block ID, you don't give the command a block...
Read more >1.14.4 Help with detecting when a certain player is on a ...
If you don't have 1 but several blocks, your solution is much more complicated. You also can hide the blocks by changing the...
Read more >Skipping execution of -with- block - python - Stack Overflow
According to PEP-343, a with statement translates from: with EXPR as VAR: BLOCK. to: mgr = (EXPR) exit = type(mgr).__exit__ # Not calling...
Read more >How to execute a custom block with given spec (if it is defined)?
And please, please, pretty please do not call me out in the forums. I do read every forum post several times a day....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The pragma works as is because it’s no longer recognized as a runnable type. Technically you could put anything there that wasn’t a supported type and it would be preserved. In this case, Github at the very least still syntax highlights. That means there’s no changes needed to support doing
I think it would be easy enough to add the html comment though.
Could this not be done with a custom code block identifier, specifically for commenting?