question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Don't execute certain blocks

See original GitHub issue

I 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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
zephraphcommented, Jun 6, 2018

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

```bash @ignore
echo "Don't run this with maid"
```

I think it would be easy enough to add the html comment though.

1reaction
chrisdmacraecommented, Jun 5, 2018

Could this not be done with a custom code block identifier, specifically for commenting?

 ```maidcomment
  // code
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found