1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#!/usr/bin/env python
# Copyright (c) 2024-2025 Arista Networks, Inc.
# Use of this source code is governed by the Apache License 2.0
# that can be found in the LICENSE file.
"""Generates SVG for documentation purposes."""
import sys
from pathlib import Path
# TODO: svg in another PR
from generate_snippet import main as generate_snippet
sys.path.insert(0, str(Path(__file__).parents[2]))
COMMANDS = [
"anta --help",
"anta nrfu --help",
"anta nrfu csv --help",
"anta nrfu json --help",
"anta nrfu table --help",
"anta nrfu text --help",
"anta nrfu tpl-report --help",
"anta nrfu md-report --help",
"anta get tags --help",
"anta get inventory --help",
"anta get tests --help",
"anta get from-cvp --help",
"anta get from-ansible --help",
"anta get commands --help",
]
for command in COMMANDS:
# TODO: svg in another PR
generate_snippet(command.split(" "), output="txt")
|