Ed Warnicke | 2d8862c | 2015-12-22 13:23:18 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Ed Warnicke | 7471c6d | 2016-01-18 10:12:53 -0700 | [diff] [blame] | 2 | if [ $# -gt 0 ]; then |
Ed Warnicke | a67c418 | 2016-01-26 15:45:07 -0700 | [diff] [blame] | 3 | echo exec ${@} | vpp_api_test | sed 's/vat# //g' |
Ed Warnicke | 7471c6d | 2016-01-18 10:12:53 -0700 | [diff] [blame] | 4 | else |
| 5 | echo -n "vpp# " |
| 6 | while read CMD; do |
Ed Warnicke | 014bdeb | 2016-01-25 18:52:58 -0700 | [diff] [blame] | 7 | if [ "x$CMD" == "xexit" ]; then |
| 8 | exit |
| 9 | elif [ "x$CMD" != "x" ]; then |
Ed Warnicke | a67c418 | 2016-01-26 15:45:07 -0700 | [diff] [blame] | 10 | echo exec $CMD | vpp_api_test | sed 's/vat# //g' |
Ed Warnicke | 014bdeb | 2016-01-25 18:52:58 -0700 | [diff] [blame] | 11 | fi |
| 12 | echo -n "vpp# " |
Ed Warnicke | 7471c6d | 2016-01-18 10:12:53 -0700 | [diff] [blame] | 13 | done |
| 14 | fi |