Merge pull request #2674 from nickofolas/fix/help-format-fix-merge

Fix formatting lost in merge commit
This commit is contained in:
hydroflame 2022-01-17 15:52:28 -05:00 committed by GitHub
commit b58a2c3cd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,52 +3,53 @@ import { IMap } from "../types";
export const TerminalHelpText: string[] = [ export const TerminalHelpText: string[] = [
"Type 'help name' to learn more about the command ", "Type 'help name' to learn more about the command ",
"", " ",
'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",
"clear Clear all text on the terminal ", " clear Clear all text on the terminal ",
"cls See 'clear' command ", " cls See 'clear' command ",
"connect [hostname] Connects to a remote server", " connect [hostname] Connects to a remote server",
"cp [src] [dst] Copy a file", " cp [src] [dst] Copy a file",
"download [script/text file] Downloads scripts or text files to your computer", " download [script/text file] Downloads scripts or text files to your computer",
"expr [math expression] Evaluate a mathematical expression", " expr [math expression] Evaluate a mathematical expression",
"free Check the machine's memory (RAM) usage", " free Check the machine's memory (RAM) usage",
"grow Spoof money in a servers bank account, increasing the amount available.", " grow Spoof money in a servers bank account, increasing the amount available.",
"hack Hack the current machine", " hack Hack the current machine",
"help [command] Display this help text, or the help text for a command", " help [command] Display this help text, or the help text for a command",
"home Connect to home computer", " home Connect to home computer",
"hostname Displays the hostname of the machine", " hostname Displays the hostname of the machine",
"kill [script/pid] [args...] Stops the specified script on the current server ", " kill [script/pid] [args...] Stops the specified script on the current server ",
"killall Stops all running scripts on the current machine", " killall Stops all running scripts on the current machine",
"ls [dir] [| grep pattern] Displays all files on the machine", " ls [dir] [| grep pattern] Displays all files on the machine",
"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",
"scan Prints all immediately-available network connections", " scan Prints all immediately-available network connections",
"scan-analyze [d] [-a] Prints info for all servers up to <i>d</i> nodes away", " scan-analyze [d] [-a] Prints info for all servers up to <i>d</i> nodes away",
"scp [file ...] [server] Copies a file to a destination server", " scp [file ...] [server] Copies a file to a destination server",
"sudov Shows whether you have root access on this computer", " sudov Shows whether you have root access on this computer",
"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`,
@ -58,11 +59,12 @@ const TemplatedHelpTexts: IMap<(command: string) => string[]> = {
` `, ` `,
`Examples:`, `Examples:`,
` `, ` `,
`${command} test.js`, ` ${command} test.js`,
`${command} test.js test2.js`, ` ${command} test.js test2.js`,
` `, ` `,
`${command} test.*`, ` ${command} test.*`,
`${command} /my-dir/*.js`, ` ${command} /my-dir/*.js`,
` `
] ]
} }
} }