diff --git a/src/main/resources/assets/ajarc/bin/cat.js b/src/main/resources/assets/ajarc/bin/cat.js index 0ee0fc9..7cd9897 100644 --- a/src/main/resources/assets/ajarc/bin/cat.js +++ b/src/main/resources/assets/ajarc/bin/cat.js @@ -1,4 +1,3 @@ -fs.writeFile("/test.txt", "long hard text file") var fileContent = fs.readFile(process.args[0]) fileContent.split("\n").forEach(function (it) { screen.print(it) diff --git a/src/main/resources/assets/ajarc/bin/js.js b/src/main/resources/assets/ajarc/bin/js.js new file mode 100644 index 0000000..0d87f1f --- /dev/null +++ b/src/main/resources/assets/ajarc/bin/js.js @@ -0,0 +1 @@ +js.run(process.args[0]) \ No newline at end of file diff --git a/src/main/resources/assets/ajarc/bin/shittyeditor.js b/src/main/resources/assets/ajarc/bin/shittyeditor.js new file mode 100644 index 0000000..889f011 --- /dev/null +++ b/src/main/resources/assets/ajarc/bin/shittyeditor.js @@ -0,0 +1,4 @@ +var args = process.args +var file = args[0] +var content = args[1] +fs.writeFile(file, content) \ No newline at end of file