Wrap shell output in code blocks #244
Replies: 5 comments 2 replies
-
Thank you for the suggestion! 🙂 Three things come to my mind: 1. Predefined
|
Beta Was this translation helpful? Give feedback.
-
Output can be duplicatedJust a small and maybe not so important side effect that will come from this wrapper feature, is that if you use An example wrapper:
I don't know if there's any real use for this, though. |
Beta Was this translation helpful? Give feedback.
-
Released now@talios Can you test this and let me know if there's anything to improve, please? 🙂 |
Beta Was this translation helpful? Give feedback.
-
@Taitava so far, after a quick test it seems to work wonderfully. Only thing I can think of off hand, which could be handled at the level of the command level I'm running, but may be useful - is being able to trim the leading/trailing blank lines from any shell output. That's a super minor/trivial thing tho. |
Beta Was this translation helpful? Give feedback.
-
Take your time! I know the feeling after doing deep-dives on pipelines and containers on my own projects at work. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Often I find myself wanting to wrap the output of a shell command in a code-fence/preformatted code block for easier reading. And maybe prefixing it with some custom templated output ( i.e run date etc. )
Is this something we can have added?
Beta Was this translation helpful? Give feedback.
All reactions