PoC: flat and advanced mode
This commit is contained in:
12
test.sh
Normal file
12
test.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/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!"
|
Reference in New Issue
Block a user