diff options
author | AlmightyMiau <almightymeow612@gmail.com> | 2024-10-26 13:06:14 -0700 |
---|---|---|
committer | AlmightyMiau <almightymeow612@gmail.com> | 2024-10-26 13:06:14 -0700 |
commit | 1ca00b3b73a9699e41f81e154cea32934c16de03 (patch) | |
tree | d8ff8fe937b06cf40458aac232953b19665bcc6e /bitburnerFiles1026/shell |
First commit
Diffstat (limited to 'bitburnerFiles1026/shell')
-rw-r--r-- | bitburnerFiles1026/shell/java.js | 9 | ||||
-rw-r--r-- | bitburnerFiles1026/shell/js.js | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/bitburnerFiles1026/shell/java.js b/bitburnerFiles1026/shell/java.js new file mode 100644 index 0000000..fe4c8f9 --- /dev/null +++ b/bitburnerFiles1026/shell/java.js @@ -0,0 +1,9 @@ +/** @param {NS} ns + * @link {RunOptions} ro +*/ + +// run as +// java 'FUNCTION' +export async function main(ns) { + ns.exec("shell/js.js", "home", {threads:1, ramOverride:32}, ns.args[0]) +}
\ No newline at end of file diff --git a/bitburnerFiles1026/shell/js.js b/bitburnerFiles1026/shell/js.js new file mode 100644 index 0000000..3755121 --- /dev/null +++ b/bitburnerFiles1026/shell/js.js @@ -0,0 +1,4 @@ +/** @param {NS} ns */ +export async function main(ns) { + ns.tprint(await eval(ns.args[0])); +}
\ No newline at end of file |