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
94270156921536["mkcommandoutput.MkCommandOutput"]
94270156955776["mktemplate.MkTemplate"]
94270158791264["mkcontainer.MkContainer"]
94270153212096["mknode.MkNode"]
94270159179120["node.Node"]
139968908570848["builtins.object"]
94270156955776 --> 94270156921536
94270158791264 --> 94270156955776
94270153212096 --> 94270158791264
94270159179120 --> 94270153212096
139968908570848 --> 94270159179120
/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>
"""