fixme/graphviz
Some checks failed
/ job (push) Failing after 14m6s

This commit is contained in:
Marc Beninca 2024-07-17 11:57:44 +02:00
parent 4a9640475e
commit 3439434c08
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -7,6 +7,7 @@ from pathlib import Path
from rwx import fs
from rwx.log import stream as log
from rwx.ps import run
import spcd
from spcd import cmd
@ -35,6 +36,13 @@ def main(main: str) -> None:
if name == "__main__.py":
spcd.set_ssh(*arguments)
spcd.install_commands(main)
# FIXME abstract command
run(
"apt-get",
"install",
"--assume-yes",
"graphviz",
)
else:
function = getattr(cmd, name.replace("-", "_"))
function(*arguments)