mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-09 17:23:53 +01:00
Updated doc for new Terminal filesystem. Fixed some minor issues with new Location UI
This commit is contained in:
parent
3ce2e83dd8
commit
c56645c794
@ -68,13 +68,14 @@
|
||||
@include boxShadow($boxShadowArgs);
|
||||
|
||||
background-color: #555;
|
||||
border: 2px solid var(--my-highlight-color);
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
float: center;
|
||||
resize: none;
|
||||
color: #fff;
|
||||
margin: 4px;
|
||||
padding: 2px;
|
||||
border: 2px solid var(--my-highlight-color);
|
||||
resize: none;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
#script-editor-status {
|
||||
|
@ -90,9 +90,10 @@ Note that in order to reference a file, :ref:`netscript` functions require the
|
||||
|
||||
Missing Features
|
||||
^^^^^^^^^^^^^^^^
|
||||
Terminal/Filesystem features that are not yet implemented:
|
||||
These features that are typically in Linux filesystems have not yet been added to the game:
|
||||
|
||||
* Tab autocompletion does not work with relative paths
|
||||
* :code:`mv` only accepts full filepaths for the destination argument. It does not accept directories
|
||||
|
||||
Commands
|
||||
--------
|
||||
@ -399,7 +400,10 @@ See :ref:`terminal_filesystem` for more details about the Terminal's filesystem.
|
||||
This command only works for scripts and text files (.txt). It cannot, however, be used
|
||||
to convert from script to text file, or vice versa.
|
||||
|
||||
Note that this function can also be used to rename files.
|
||||
This function can also be used to rename files.
|
||||
|
||||
.. note:: Unlike the Linux :code:`mv` command, the *destination* argument must be the
|
||||
full filepath. It cannot be a directory.
|
||||
|
||||
Examples::
|
||||
|
||||
|
@ -215,7 +215,7 @@ export class CompanyLocation extends React.Component<IProps, IState> {
|
||||
<p className={"tooltip"}>
|
||||
Company reputation: {numeralWrapper.format(this.company.playerReputation, "0,0.000")}
|
||||
<span className={"tooltiptext"}>
|
||||
You will earn ${numeralWrapper.format(favorGain[0], "0,0")} company
|
||||
You will earn {numeralWrapper.format(favorGain[0], "0,0")} company
|
||||
favor upon resetting after installing Augmentations
|
||||
</span>
|
||||
</p>
|
||||
|
@ -1163,6 +1163,11 @@ let Terminal = {
|
||||
const source = commandArray[1];
|
||||
const dest = commandArray[2];
|
||||
|
||||
if (!isScriptFilename(source) && !source.endsWith(".txt")) {
|
||||
postError(`'mv' can only be used on scripts and text files (.txt)`);
|
||||
return;
|
||||
}
|
||||
|
||||
const srcFile = Terminal.getFile(source);
|
||||
if (srcFile == null) {
|
||||
postError(`Source file ${source} does not exist`);
|
||||
@ -1218,9 +1223,6 @@ let Terminal = {
|
||||
}
|
||||
|
||||
srcFile.fn = destPath;
|
||||
} else {
|
||||
postError(`'mv' can only be used on scripts, literature files (.lit), and text files (.txt)`);
|
||||
return;
|
||||
}
|
||||
} catch(e) {
|
||||
Terminal.postThrownError(e);
|
||||
|
@ -166,8 +166,11 @@ export const HelpTexts: IMap<string> = {
|
||||
"above will print the amount of RAM needed to run 'foo.script' with 50 threads.",
|
||||
mv: "mv [src] [dest]<br>" +
|
||||
"Move the source file to the specified destination. This can also be used to rename files. " +
|
||||
"Note that this only works for scripts and text files (.txt). This command CANNOT be used to " +
|
||||
"convert to different file types. Examples: <br><br>" +
|
||||
"This command only works for scripts and text files (.txt). This command CANNOT be used to " +
|
||||
"convert to different file types<br><br>" +
|
||||
"Note that, unlike the Linux 'mv' command, the destination argument must be the " +
|
||||
"full filepath. " +
|
||||
"Examples: <br><br>" +
|
||||
"mv hacking-controller.script scripts/hacking-controller.script<br>" +
|
||||
"mv myScript.js myOldScript.js",
|
||||
nano: "nano [file name]<br>" +
|
||||
|
Loading…
Reference in New Issue
Block a user