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
94420313034752["mkcommandoutput.MkCommandOutput"]
94420311501888["mktemplate.MkTemplate"]
94420312299136["mkcontainer.MkContainer"]
94420313076768["mknode.MkNode"]
94420313236736["node.Node"]
140608527347936["builtins.object"]
94420311501888 --> 94420313034752
94420312299136 --> 94420311501888
94420313076768 --> 94420312299136
94420313236736 --> 94420313076768
140608527347936 --> 94420313236736
/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>
"""