diff --git a/examples/eval.kapow b/examples/eval.pow similarity index 100% rename from examples/eval.kapow rename to examples/eval.pow diff --git a/examples/nmap/Dockerfile b/examples/nmap/Dockerfile index b600e67..5c44761 100644 --- a/examples/nmap/Dockerfile +++ b/examples/nmap/Dockerfile @@ -1,4 +1,4 @@ FROM kapow RUN apk add nmap -COPY nmap.kapow . -CMD kapow nmap.kapow +COPY nmap.pow . +CMD kapow nmap.pow diff --git a/examples/nmap/nmap.kapow b/examples/nmap/nmap.pow similarity index 100% rename from examples/nmap/nmap.kapow rename to examples/nmap/nmap.pow diff --git a/examples/operator.pow b/examples/operator.pow new file mode 100644 index 0000000..6b05ce9 --- /dev/null +++ b/examples/operator.pow @@ -0,0 +1,14 @@ +GET /ps { + ps -fax > @fifo:response/body +} + +GET /ls { + echo "text/plain" > @fifo:response/header/Content-Type + ls -la @value:request/params/path > @fifo:response/body +} + +GET / = index.html + +GET /cmdline { + cat /proc/cmdline > @fifo:response/body +} diff --git a/examples/pandoc.kapow b/examples/pandoc.pow similarity index 100% rename from examples/pandoc.kapow rename to examples/pandoc.pow diff --git a/examples/pdfeditor/pdfeditor.kapow b/examples/pdfeditor/pdfeditor.pow similarity index 100% rename from examples/pdfeditor/pdfeditor.kapow rename to examples/pdfeditor/pdfeditor.pow diff --git a/examples/torrent.kapow b/examples/torrent.pow similarity index 100% rename from examples/torrent.kapow rename to examples/torrent.pow