some new commands; lfs wip

This commit is contained in:
minjaesong
2023-05-11 20:19:49 +09:00
parent 1efec13ecf
commit 803b86ce43
4 changed files with 49 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
if (exec_args[1] === undefined) {
println("Usage: after a pipe,\n writeto filename")
return 0
}
if (!_G.shell.hasPipe()) {
println("Pipe not opened")
return 1
}
files.open(_G.shell.resolvePathInput(exec_args[1]).full).swrite(_G.shell.getPipe())