| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
"""Generates SVG for documentation purposes.""" |
| 6 |
|
| 7 |
import sys |
| 8 |
from pathlib import Path |
| 9 |
|
| 10 |
|
| 11 |
from generate_snippet import main as generate_snippet |
| 12 |
|
| 13 |
sys.path.insert(0, str(Path(__file__).parents[2])) |
| 14 |
|
| 15 |
COMMANDS = [ |
| 16 |
"anta --help", |
| 17 |
"anta nrfu --help", |
| 18 |
"anta nrfu csv --help", |
| 19 |
"anta nrfu json --help", |
| 20 |
"anta nrfu table --help", |
| 21 |
"anta nrfu text --help", |
| 22 |
"anta nrfu tpl-report --help", |
| 23 |
"anta nrfu md-report --help", |
| 24 |
"anta get tags --help", |
| 25 |
"anta get inventory --help", |
| 26 |
"anta get tests --help", |
| 27 |
"anta get from-cvp --help", |
| 28 |
"anta get from-ansible --help", |
| 29 |
"anta get commands --help", |
| 30 |
"anta check --help", |
| 31 |
"anta check catalog --help", |
| 32 |
"anta exec --help", |
| 33 |
"anta exec clear-counters --help", |
| 34 |
"anta exec snapshot --help", |
| 35 |
"anta exec collect-tech-support --help", |
| 36 |
"anta debug --help", |
| 37 |
"anta debug run-cmd --help", |
| 38 |
"anta debug run-template --help", |
| 39 |
] |
| 40 |
|
| 41 |
for command in COMMANDS: |
| 42 |
|
| 43 |
generate_snippet(command.split(" "), output="txt") |