Update a few scripts

This commit is contained in:
Isaac Shoebottom 2023-11-02 16:45:45 -03:00
parent 8d1df7fe1d
commit 5a3fa148fe
3 changed files with 33 additions and 1 deletions

View File

@ -2,6 +2,5 @@
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" /> <mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$/typescript-template" vcs="Git" />
</component> </component>
</project> </project>

View File

@ -0,0 +1,29 @@
/** @param {NS} ns */
export async function main(ns) {
let files = [
"run-script-on-all-servers.js",
"recursive-run.js",
"recursive-copy.js",
"recursive-kill.js",
"hack-args.js",
"hack.js",
"root.js",
"recursive-root.js"
]
let hosts = [
"zb-institute",
"comptek",
"nectar-net",
"neo-net",
"max-hardware",
"omega-net",
"avmnite-02h",
"CSEC"
]
for(const host of hosts) {
for (const file of files) {
ns.rm(file, host)
}
}
}

View File

@ -0,0 +1,4 @@
/** @param {NS} ns */
export async function main(ns) {
ns.tprint("Hello World!");
}