From 33e4e310998088176b3457240ed389327adabaa9 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Tue, 28 Dec 2021 00:54:35 +0000 Subject: [PATCH] Fixes scp and mem helptext. --- src/Terminal/HelpText.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/Terminal/HelpText.ts b/src/Terminal/HelpText.ts index 3f143645a..3468fe4d9 100644 --- a/src/Terminal/HelpText.ts +++ b/src/Terminal/HelpText.ts @@ -27,7 +27,7 @@ export const TerminalHelpText: string[] = [ "killall Stops all running scripts on the current machine", "ls [dir] [| grep pattern] Displays all files 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", "nano [file ...] Text editor - Open up and edit one or more scripts or text files", "ps Display all scripts that are currently running", @@ -35,7 +35,7 @@ export const TerminalHelpText: string[] = [ "run [name] [-t n] [--tail] [args...] Execute a program or script", "scan Prints all immediately-available network connections", "scan-analyze [d] [-a] Prints info for all servers up to d 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", "tail [script] [args...] Displays dynamic logs for the specified script", "top Displays all running scripts and their RAM usage", @@ -360,12 +360,17 @@ export const HelpTexts: IMap = { "-a flag at the end of the command if you would like to enable that.", ], scp: [ - "scp [filename] [target server]", + "scp [filename ...] [target server]", " ", - "Copies the specified file from the current server to the target server. ", - "This command only works for script files (.script extension), literature files (.lit extension), ", + "Copies the specified file(s) from the current server to the target server. ", + "This command only works for script files (.script or .js extension), literature files (.lit extension), ", "and text files (.txt extension). ", - "The second argument passed in must be the hostname or IP of the target server.", + "The second argument passed in must be the hostname or IP of the target server. Examples:", + " ", + "scp foo.script n00dles", + " ", + "scp foo.script bar.script n00dles", + " ", ], sudov: ["sudov", " ", "Prints whether or not you have root access to the current machine"],