Files
argparser/test.sh
2025-10-10 18:13:54 +02:00

13 lines
376 B
Bash

#!/usr/bin/env bash
# Test script for argparser tool
PID=$!
sleep 2
curl -s -X POST http://localhost:8080/generate \
-H "Content-Type: application/json" \
-d '{"header":"Deploy Script","arguments":[{"params":"-e --env NAME","command":"env","helpText":"Environment"}]}' > test_result.sh
cat test_result.sh
kill $PID 2>/dev/null
echo ""
echo "Test completed successfully!"