mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Update verbiage to match UI (Script Editor vs. Text Editor)
This commit is contained in:
parent
b6f252cd8c
commit
3f032d7006
@ -46,12 +46,12 @@ export const TerminalHelpText: string[] = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const TemplatedHelpTexts: IMap<(command: string) => string[]> = {
|
const TemplatedHelpTexts: IMap<(command: string) => string[]> = {
|
||||||
textEditor: (command) => {
|
scriptEditor: (command) => {
|
||||||
return [
|
return [
|
||||||
`${command} [file ...] | [glob]`,
|
`${command} [file ...] | [glob]`,
|
||||||
` `,
|
` `,
|
||||||
`Opens up the specified file(s) in the Text Editor. Only scripts (.js, .ns) or text files (.txt) can be `,
|
`Opens up the specified file(s) in the Script Editor. Only scripts (.js, .ns, .script) or text files (.txt) `,
|
||||||
`edited using the Text Editor. If the file does not already exist, then a new, empty one will be created`,
|
`can be edited using the Script Editor. If a file does not exist a new one will be created`,
|
||||||
` `,
|
` `,
|
||||||
`If provided a glob as the only argument, ${command} can spider directories and open all matching `,
|
`If provided a glob as the only argument, ${command} can spider directories and open all matching `,
|
||||||
`files at once. ${command} cannot create files using globs, so your scripts must already exist.`,
|
`files at once. ${command} cannot create files using globs, so your scripts must already exist.`,
|
||||||
@ -328,7 +328,7 @@ export const HelpTexts: IMap<string[]> = {
|
|||||||
" ",
|
" ",
|
||||||
"mv myScript.js myOldScript.js",
|
"mv myScript.js myOldScript.js",
|
||||||
],
|
],
|
||||||
nano: TemplatedHelpTexts.textEditor('nano'),
|
nano: TemplatedHelpTexts.scriptEditor('nano'),
|
||||||
ps: ["ps", " ", "Prints all scripts that are running on the current server"],
|
ps: ["ps", " ", "Prints all scripts that are running on the current server"],
|
||||||
|
|
||||||
rm: [
|
rm: [
|
||||||
@ -426,7 +426,7 @@ export const HelpTexts: IMap<string[]> = {
|
|||||||
" ",
|
" ",
|
||||||
"It is not necessary to differentiate between global and non-global aliases when using 'unalias'",
|
"It is not necessary to differentiate between global and non-global aliases when using 'unalias'",
|
||||||
],
|
],
|
||||||
vim: TemplatedHelpTexts.textEditor('vim'),
|
vim: TemplatedHelpTexts.scriptEditor('vim'),
|
||||||
weaken: [
|
weaken: [
|
||||||
"weaken",
|
"weaken",
|
||||||
"",
|
"",
|
||||||
|
Loading…
Reference in New Issue
Block a user