mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 02:32:55 +02:00
MISC: Support JSX, TS, TSX script files (#1216)
This commit is contained in:
@@ -52,10 +52,11 @@ const TemplatedHelpTexts: Record<string, (command: string) => string[]> = {
|
||||
return [
|
||||
`Usage: ${command} [file names...] | [glob]`,
|
||||
` `,
|
||||
`Opens up the specified file(s) in the Script Editor. Only scripts (.js, or .script) or text files (.txt) `,
|
||||
`can be edited using the Script Editor. If a file does not exist a new one will be created`,
|
||||
`Opens up the specified file(s) in the Script Editor. Only scripts (.js, .jsx, .ts, .tsx, .script) `,
|
||||
`or text files (.txt, .json) 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 a glob is provided as the only argument, ${command} can crawl directories and open all matching `,
|
||||
`files at once. ${command} cannot create files using globs, so your scripts must already exist.`,
|
||||
` `,
|
||||
`Examples:`,
|
||||
@@ -456,8 +457,8 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
"Usage: scp [file names...] [target server]",
|
||||
" ",
|
||||
"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). ",
|
||||
"This command only works for script files (.js, .jsx, .ts, .tsx, .script), text files (.txt, .json), ",
|
||||
"and literature files (.lit).",
|
||||
"The second argument passed in must be the hostname or IP of the target server. Examples:",
|
||||
" ",
|
||||
" scp foo.script n00dles",
|
||||
@@ -518,8 +519,8 @@ export const HelpTexts: Record<string, string[]> = {
|
||||
"Usage: wget [url] [target file]",
|
||||
" ",
|
||||
"Retrieves data from a URL and downloads it to a file on the current server. The data can only ",
|
||||
"be downloaded to a script (.script or .js) or a text file (.txt). If the file already exists, ",
|
||||
"it will be overwritten by this command.",
|
||||
"be downloaded to a script (.js, .jsx, .ts, .tsx, .script) or a text file (.txt, .json).",
|
||||
"If the file already exists, it will be overwritten by this command.",
|
||||
" ",
|
||||
"Note that it will not be possible to download data from many websites because they do not allow ",
|
||||
"cross-origin resource sharing (CORS). Example:",
|
||||
|
||||
Reference in New Issue
Block a user