DOCUMENTATION: Improve help text of scp and run (#2493)

This commit is contained in:
catloversg
2026-02-12 01:42:10 +07:00
committed by GitHub
parent ac34d6508d
commit 826fd42296
2 changed files with 4 additions and 4 deletions

View File

@@ -72,4 +72,4 @@ The `amount` of the reward varies based on the difficulty of the problem posed b
## Notes
- The `scp` [Terminal](terminal.md) command does not work on Coding Contracts
- The `scp` CLI command and the `ns.scp` API do not work on Coding Contracts.

View File

@@ -34,12 +34,12 @@ export const TerminalHelpText: string[] = [
" nano [files...] Text editor - Open up and edit one or more scripts or text files",
" ps Display all scripts that are currently running",
" rm [OPTIONS]... [FILE]... Delete a file from the server",
" run [script] [-t n] [--tail] Execute a program or script",
" run [script] [-t n] [--tail] Run a program, a script, or a coding contract",
" [--ram-override n]",
" [--temporary] [args...]",
" scan Prints all immediately-available network connections",
" scan-analyze [d] [-a] Prints info for all servers up to d nodes away",
" scp [files...] [server] Copies text or .lit files to a destination server",
" scp [files...] [server] Copies scripts, text files, or .lit files to a destination server",
" sudov Shows whether you have root access on this computer",
" tail [script/pid] [args...] Displays dynamic logs for the specified script",
" top Displays all running scripts and their RAM usage",
@@ -433,7 +433,7 @@ export const HelpTexts: Record<string, string[]> = {
run: [
"Usage: run [file name] [-t num_threads] [--tail] [--ram-override ram_in_GBs] [--temporary] [args...]",
" ",
"Execute a program, script or coding contract.",
"Run a program, a script, or a coding contract.",
" ",
"The '[-t num_threads]', '[--tail]', `[--ram-override ram_in_GBs]`, [--temporary], and '[args...]' arguments are",
"only valid when running a script. The '-t' flag is used to indicate that the script should be run with the specified",