Improve visualize.py to load data directly

This commit is contained in:
Tobias Reisinger 2024-10-19 18:41:29 +02:00
parent fd2eec6683
commit 0347efcb38
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 12 additions and 14 deletions

View file

@ -55,8 +55,5 @@ all:
ansible-playbook ./playbooks/serguzim.net.yml -t $(TAGS)
visualize:
tofu output --json \
| jq 'with_entries(.value |= .value)' \
| ./visualize.py \
| d2 - infrastructure.svg
./visualize.py | d2 - infrastructure.svg