MkCommandOutput
Node to display the terminal output of a command.¶
Example: Regular¶
Name | Children | Inherits |
---|---|---|
MkTemplate mknodes.templatenodes.mktemplate Node representing a jinja template. |
graph TD
94272696841920["mkcommandoutput.MkCommandOutput"]
94272697537520["mktemplate.MkTemplate"]
94272697822880["mkcontainer.MkContainer"]
94272697820320["mknode.MkNode"]
94272697777776["node.Node"]
139836355973312["builtins.object"]
94272697537520 --> 94272696841920
94272697822880 --> 94272697537520
94272697820320 --> 94272697822880
94272697777776 --> 94272697820320
139836355973312 --> 94272697777776
/home/runner/work/mknodes/mknodes/mknodes/templatenodes/mkcommandoutput/metadata.toml
[metadata]
icon = "mdi:bash"
name = "MkCommandOutput"
[[resources.css]]
filename = "terminal.css"
[examples.regular]
condition = "{{ 'CI' | getenv }}"
title = "Regular"
jinja = """
{{ ["hatch", "--help"] | MkCommandOutput }}
"""
[output.html]
template = """
<div data-terminal>
<span data-ty="input">{{ node.call | join(" ") }}</span>
<span data-ty>{{ node.call | check_output(cwd=node.cwd) }}</span>
</div>
"""