Add script that will contain user created programs

This commit is contained in:
Isaac Shoebottom 2023-11-03 21:38:12 -03:00
parent 29d88170ab
commit 677f23ea8d

15
servers/home/programs.ts Normal file
View File

@ -0,0 +1,15 @@
import { recursiveScan } from "./utils"
export async function main(ns: NS){
switch (ns.args[0]) {
case "getServers":
getServers(ns);
break;
default:
ns.tprint("Invalid program name");
break;
}
}
function getServers(ns: NS) {
ns.tprint(recursiveScan(ns));
}