mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-02-18 10:53:43 +01:00
Merge pull request #2674 from nickofolas/fix/help-format-fix-merge
Fix formatting lost in merge commit
This commit is contained in:
@ -7,7 +7,7 @@ export const TerminalHelpText: string[] = [
|
|||||||
' alias [-g] [name="value"] Create or display Terminal aliases',
|
' alias [-g] [name="value"] Create or display Terminal aliases',
|
||||||
" analyze Get information about the current machine ",
|
" analyze Get information about the current machine ",
|
||||||
" backdoor Install a backdoor on the current machine ",
|
" backdoor Install a backdoor on the current machine ",
|
||||||
"buy [-l/program] Purchase a program through the Dark Web",
|
" buy [-l/-a/program] Purchase a program through the Dark Web",
|
||||||
" cat [file] Display a .msg, .lit, or .txt file",
|
" cat [file] Display a .msg, .lit, or .txt file",
|
||||||
" cd [dir] Change to a new directory",
|
" cd [dir] Change to a new directory",
|
||||||
" check [script] [args...] Print a script's logs to Terminal",
|
" check [script] [args...] Print a script's logs to Terminal",
|
||||||
@ -29,7 +29,7 @@ export const TerminalHelpText: string[] = [
|
|||||||
" lscpu Displays the number of CPU cores on the machine",
|
" lscpu Displays the number of CPU cores on the machine",
|
||||||
" mem [script] [-t n] Displays the amount of RAM required to run the script",
|
" mem [script] [-t n] Displays the amount of RAM required to run the script",
|
||||||
" mv [src] [dest] Move/rename a text or script file",
|
" mv [src] [dest] Move/rename a text or script file",
|
||||||
"nano [file ...] | [glob] Text editor - Open up and edit one or more scripts or text files",
|
" nano [file ...] Text editor - Open up and edit one or more scripts or text files",
|
||||||
" ps Display all scripts that are currently running",
|
" ps Display all scripts that are currently running",
|
||||||
" rm [file] Delete a file from the server",
|
" rm [file] Delete a file from the server",
|
||||||
" run [name] [-t n] [--tail] [args...] Execute a program or script",
|
" run [name] [-t n] [--tail] [args...] Execute a program or script",
|
||||||
@ -40,15 +40,16 @@ export const TerminalHelpText: string[] = [
|
|||||||
" tail [script] [args...] Displays dynamic logs for the specified script",
|
" tail [script] [args...] Displays dynamic logs for the specified script",
|
||||||
" top Displays all running scripts and their RAM usage",
|
" top Displays all running scripts and their RAM usage",
|
||||||
" unalias [alias name] Deletes the specified alias",
|
" unalias [alias name] Deletes the specified alias",
|
||||||
"vim [file ...] | [glob] Text editor - Open up and edit one or more scripts or text files in vim mode",
|
" vim [file ...] Text editor - Open up and edit one or more scripts or text files in vim mode",
|
||||||
" weaken Reduce the security of the current machine",
|
" weaken Reduce the security of the current machine",
|
||||||
" wget [url] [target file] Retrieves code/text from a web server",
|
" wget [url] [target file] Retrieves code/text from a web server",
|
||||||
|
" ",
|
||||||
];
|
];
|
||||||
|
|
||||||
const TemplatedHelpTexts: IMap<(command: string) => string[]> = {
|
const TemplatedHelpTexts: IMap<(command: string) => string[]> = {
|
||||||
scriptEditor: (command) => {
|
scriptEditor: (command) => {
|
||||||
return [
|
return [
|
||||||
`${command} [file ...] | [glob]`,
|
`Usage: ${command} [file ...] | [glob]`,
|
||||||
` `,
|
` `,
|
||||||
`Opens up the specified file(s) in the Script Editor. Only scripts (.js, .ns, .script) or text files (.txt) `,
|
`Opens up the specified file(s) in the Script Editor. Only scripts (.js, .ns, .script) or text files (.txt) `,
|
||||||
`can be edited using the Script Editor. If a file does not exist a new one will be created`,
|
`can be edited using the Script Editor. If a file does not exist a new one will be created`,
|
||||||
@ -63,6 +64,7 @@ const TemplatedHelpTexts: IMap<(command: string) => string[]> = {
|
|||||||
` `,
|
` `,
|
||||||
` ${command} test.*`,
|
` ${command} test.*`,
|
||||||
` ${command} /my-dir/*.js`,
|
` ${command} /my-dir/*.js`,
|
||||||
|
` `
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user