delete file-watch project

This commit is contained in:
2021-06-21 12:27:03 -06:00
parent 99a748aafb
commit 369240f0c3
7 changed files with 0 additions and 57 deletions

View File

@@ -18,7 +18,6 @@ jobs:
- KISS_TARGET=py
- KISS_PROJECT=aoc
- KISS_PROJECT=asciilib2
- KISS_PROJECT=file-watch
- KISS_PROJECT=flixel-ascii-game
- KISS_PROJECT=flixel-rpg-tutorial
- KISS_PROJECT=kiss-vscode

View File

@@ -1 +0,0 @@
test-output.txt

View File

@@ -1,4 +0,0 @@
-lib kiss
-cp src
--main Main
--python bin/main.py

View File

@@ -1,9 +0,0 @@
package;
import sys.io.File;
import sys.io.Process;
import kiss.Kiss;
import kiss.Prelude;
@:build(kiss.Kiss.build())
class Main {}

View File

@@ -1,19 +0,0 @@
(defun check [file delay command erase]
(let [contents
(try
(StringTools.trim (File.getContent file))
(catch [e] ""))]
(if (< 0 contents.length)
#|for (line in contents.split("\n")) {
new Process(StringTools.replace(command, "{}", '"' + line + '"'));
}|#))
(if erase (File.saveContent file ""))
(Sys.sleep delay)
(check file delay command erase))
(defun :Void main []
(check
(nth (Sys.args) 0)
(Std.parseFloat (nth (Sys.args) 1))
(nth (Sys.args) 2)
(= 1 (Std.parseInt (nth (Sys.args) 3)))))

View File

@@ -1 +0,0 @@
hey

View File

@@ -1,22 +0,0 @@
#! /bin/bash
echo "" > test-output.txt
expected=$'hey\nhey\nhey'
if [[ $(uname) == *"MINGW"* ]] || [ $CI_OS_NAME = "windows-latest" ]; then
expected=$'"hey" \r\n"hey" \r\n"hey"'
fi
whichpy=python
# "python" is supposed to mean Python3 everywhere now, but not in practice
if [ ! -z "$(which python3)" ]; then
whichpy=python3
fi
haxe build.hxml && \
# Give extra time to reach 3 "hey"s
timeout 0.5 $whichpy bin/main.py test-file.txt 0.1 "echo {} >> test-output.txt" 0 || \
if [[ "$(cat test-output.txt)" != *"$expected"* ]]
then
echo "$(cat test-output.txt) should be $expected"
exit 1
fi