bg and kill
This commit is contained in:
parent
446aa9f217
commit
a7c1ff2a4a
3 changed files with 5 additions and 1 deletions
1
bg.yarn
Normal file
1
bg.yarn
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"protected":false,"mode":"f","metadata":{"name":"bg","author":"Luna Magdalena :3","version":[1],"dependencies":[],"paths":{"bg.js":"%B/bg.js"}},"content":"{\"bg.js\":{\"protected\":true,\"metadata\":{\"runner\":[]},\"mode\":\"f\",\"content\":\"if (!args[0]) {\\n display.print(\\\"No program specified\\\", 0x1000)\\n quit()\\n}\\n\\nconst programName = args[0]\\nargs.splice(0, 1)\\n\\ntry {\\n exec.runProgram(programName, args)\\n} catch (e) {\\n if (e[0]) {\\n io.log(e)\\n }\\n}\\n\\nquit()\"}}"}
|
||||
1
kill.yarn
Normal file
1
kill.yarn
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"protected":false,"mode":"f","metadata":{"name":"kill","author":"Luna Magdalena :3","version":[1],"dependencies":[],"paths":{"kill.js":"%B/kill.js"}},"content":"{\"kill.js\":{\"protected\":true,\"metadata\":{\"runner\":[]},\"mode\":\"f\",\"content\":\"const id = Number(args[0])\\n\\nif (id)\\n try {\\n exec.quit(id)\\n } catch {}\\nquit()\"}}"}
|
||||
|
|
@ -19,6 +19,8 @@
|
|||
"slog": {"url": "~slog.yarn", "version": [1]},
|
||||
"touch": {"url": "~touch.yarn", "version": [1]},
|
||||
"yarn": {"url": "~yarn.yarn", "version": [1]},
|
||||
"plist": {"url": "~plist.yarn", "version": [1]}
|
||||
"plist": {"url": "~plist.yarn", "version": [1]},
|
||||
"kill": {"url": "~kill.yarn", "version": [1]},
|
||||
"bg": {"url": "~bg.yarn", "version": [1]}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue