mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
MISC: Remove support for running NS1 scripts (#2083)
This commit is contained in:
+19
-19
@@ -54,7 +54,7 @@ const TemplatedHelpTexts: Record<string, (command: string) => string[]> = {
|
||||
return [
|
||||
`Usage: ${command} [file names...] | [glob]`,
|
||||
` `,
|
||||
`Opens up the specified file(s) in the Script Editor. Only scripts (.js, .jsx, .ts, .tsx, .script) `,
|
||||
`Opens up the specified file(s) in the Script Editor. Only scripts (.js, .jsx, .ts, .tsx) `,
|
||||
`or text files (.txt, .json) can be edited using the Script Editor. If a file does not exist, a new `,
|
||||
`one will be created.`,
|
||||
` `,
|
||||
@@ -170,11 +170,11 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
"a space. Remember that a running script is uniquely ",
|
||||
"identified both by its name and the arguments that are used to start it. So, if a script was ran with the following arguments: ",
|
||||
" ",
|
||||
" run foo.script 1 2 foodnstuff",
|
||||
" run foo.js 1 2 foodnstuff",
|
||||
" ",
|
||||
"Then to run the 'check' command on this script you would have to pass the same arguments in: ",
|
||||
" ",
|
||||
" check foo.script 1 2 foodnstuff",
|
||||
" check foo.js 1 2 foodnstuff",
|
||||
" ",
|
||||
],
|
||||
clear: [
|
||||
@@ -209,7 +209,7 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
" ",
|
||||
"Download all scripts and text files: download *",
|
||||
" ",
|
||||
"Download all scripts: download *.script",
|
||||
"Download all JS scripts: download *.js",
|
||||
" ",
|
||||
"Download all text files: download *.txt",
|
||||
" ",
|
||||
@@ -325,11 +325,11 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
"uniquely identified by both its name and the arguments that are used to start ",
|
||||
"it. So, if a script was ran with the following arguments:",
|
||||
" ",
|
||||
" run foo.script 1 sigma-cosmetics",
|
||||
" run foo.js 1 sigma-cosmetics",
|
||||
" ",
|
||||
"Then to kill this script the same arguments would have to be used:",
|
||||
" ",
|
||||
" kill foo.script 1 sigma-cosmetics",
|
||||
" kill foo.js 1 sigma-cosmetics",
|
||||
" ",
|
||||
"If you are killing the script using its PID, then the PID argument must be numeric",
|
||||
" ",
|
||||
@@ -349,9 +349,9 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
" ",
|
||||
"Examples:",
|
||||
" ",
|
||||
"List all files with the '.script' extension in the current directory:",
|
||||
"List all files with the '.js' extension in the current directory:",
|
||||
" ",
|
||||
" ls -l --grep .script",
|
||||
" ls -l --grep .js",
|
||||
" ",
|
||||
"List all files with the '.js' extension in the root directory:",
|
||||
" ",
|
||||
@@ -371,12 +371,12 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
"the amount of RAM needed to run a script with multiple threads using the '-t' flag. If the '-t' flag is specified, then ",
|
||||
"an argument for the number of threads must be passed in afterwards. Examples:",
|
||||
" ",
|
||||
" mem foo.script",
|
||||
" mem foo.js",
|
||||
" ",
|
||||
" mem foo.script -t 50",
|
||||
" mem foo.js -t 50",
|
||||
" ",
|
||||
"The first example above will print the amount of RAM needed to run 'foo.script' with a single thread. The second example ",
|
||||
"above will print the amount of RAM needed to run 'foo.script' with 50 threads.",
|
||||
"The first example above will print the amount of RAM needed to run 'foo.js' with a single thread. The second example ",
|
||||
"above will print the amount of RAM needed to run 'foo.js' with 50 threads.",
|
||||
" ",
|
||||
],
|
||||
mv: [
|
||||
@@ -390,7 +390,7 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
"full filepath. ",
|
||||
"Examples: ",
|
||||
" ",
|
||||
" mv hacking-controller.script scripts/hacking-controller.script",
|
||||
" mv hacking-controller.js scripts/hacking-controller.js",
|
||||
" ",
|
||||
" mv myScript.js myOldScript.js",
|
||||
" ",
|
||||
@@ -461,13 +461,13 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
"Usage: scp [file names...] [target server]",
|
||||
" ",
|
||||
"Copies the specified file(s) from the current server to the target server. ",
|
||||
"This command only works for script files (.js, .jsx, .ts, .tsx, .script), text files (.txt, .json), ",
|
||||
"This command only works for script files (.js, .jsx, .ts, .tsx), text files (.txt, .json), ",
|
||||
"and literature files (.lit).",
|
||||
"The second argument passed in must be the hostname or IP of the target server. Examples:",
|
||||
" ",
|
||||
" scp foo.script n00dles",
|
||||
" scp foo.js n00dles",
|
||||
" ",
|
||||
" scp foo.script bar.script n00dles",
|
||||
" scp foo.js bar.js n00dles",
|
||||
" ",
|
||||
],
|
||||
sudov: ["Usage: sudov", " ", "Prints whether or not you have root access to the current machine", " "],
|
||||
@@ -479,11 +479,11 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
"by a space. Remember that a running script is uniquely identified by both its name and the arguments that were used ",
|
||||
"to run it. So, if a script was ran with the following arguments: ",
|
||||
" ",
|
||||
" run foo.script 10 50000",
|
||||
" run foo.js 10 50000",
|
||||
" ",
|
||||
"Then in order to check its logs with 'tail' the same arguments must be used: ",
|
||||
" ",
|
||||
" tail foo.script 10 50000",
|
||||
" tail foo.js 10 50000",
|
||||
" ",
|
||||
],
|
||||
top: [
|
||||
@@ -523,7 +523,7 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
"Usage: wget [url] [target file]",
|
||||
" ",
|
||||
"Retrieves data from a URL and downloads it to a file on the current server. The data can only ",
|
||||
"be downloaded to a script (.js, .jsx, .ts, .tsx, .script) or a text file (.txt, .json).",
|
||||
"be downloaded to a script (.js, .jsx, .ts, .tsx) or a text file (.txt, .json).",
|
||||
"If the file already exists, it will be overwritten by this command.",
|
||||
" ",
|
||||
"Note that it will not be possible to download data from many websites because they do not allow ",
|
||||
|
||||
Reference in New Issue
Block a user