use variables in usage examples

This commit is contained in:
David Kilias 2020-04-10 15:17:58 +02:00
parent 240307f316
commit 20dea73b12

View file

@ -5,7 +5,8 @@
```bash ```bash
echo "Max Hackerberg\nLeibnizstr. 32\n39104 Magdeburg" | python address-label.py echo "Max Hackerberg\nLeibnizstr. 32\n39104 Magdeburg" | python address-label.py
jq -r .stammdaten.address_label ../Vorstand/stammdaten-formular/example.json | python address-label.py MEMBERFILE="../Vorstand/stammdaten-formular/example.json"
jq -r .stammdaten.address_label $MEMBERFILE | python address-label.py
``` ```
### Print label ### Print label
@ -15,5 +16,6 @@ Needs to be in the same network as the printer.
```bash ```bash
echo "Max Hackerberg\nLeibnizstr. 32\n39104 Magdeburg" | address-label.sh echo "Max Hackerberg\nLeibnizstr. 32\n39104 Magdeburg" | address-label.sh
jq -r .stammdaten.address_label ../Vorstand/stammdaten-formular/example.json | address-label.sh MEMBERFILE="../Vorstand/stammdaten-formular/example.json"
jq -r .stammdaten.address_label $MEMBERFILE | address-label.sh
``` ```