mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +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);
|
@include boxShadow($boxShadowArgs);
|
||||||
|
|
||||||
background-color: #555;
|
background-color: #555;
|
||||||
|
border: 2px solid var(--my-highlight-color);
|
||||||
|
color: #fff;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: center;
|
float: center;
|
||||||
resize: none;
|
|
||||||
color: #fff;
|
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
border: 2px solid var(--my-highlight-color);
|
resize: none;
|
||||||
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#script-editor-status {
|
#script-editor-status {
|
||||||
|
@ -90,9 +90,10 @@ Note that in order to reference a file, :ref:`netscript` functions require the
|
|||||||
|
|
||||||
Missing Features
|
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
|
* Tab autocompletion does not work with relative paths
|
||||||
|
* :code:`mv` only accepts full filepaths for the destination argument. It does not accept directories
|
||||||
|
|
||||||
Commands
|
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
|
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.
|
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::
|
Examples::
|
||||||
|
|
||||||
|
@ -215,7 +215,7 @@ export class CompanyLocation extends React.Component<IProps, IState> {
|
|||||||
<p className={"tooltip"}>
|
<p className={"tooltip"}>
|
||||||
Company reputation: {numeralWrapper.format(this.company.playerReputation, "0,0.000")}
|
Company reputation: {numeralWrapper.format(this.company.playerReputation, "0,0.000")}
|
||||||
<span className={"tooltiptext"}>
|
<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
|
favor upon resetting after installing Augmentations
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
@ -1163,6 +1163,11 @@ let Terminal = {
|
|||||||
const source = commandArray[1];
|
const source = commandArray[1];
|
||||||
const dest = commandArray[2];
|
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);
|
const srcFile = Terminal.getFile(source);
|
||||||
if (srcFile == null) {
|
if (srcFile == null) {
|
||||||
postError(`Source file ${source} does not exist`);
|
postError(`Source file ${source} does not exist`);
|
||||||
@ -1218,9 +1223,6 @@ let Terminal = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
srcFile.fn = destPath;
|
srcFile.fn = destPath;
|
||||||
} else {
|
|
||||||
postError(`'mv' can only be used on scripts, literature files (.lit), and text files (.txt)`);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
Terminal.postThrownError(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.",
|
"above will print the amount of RAM needed to run 'foo.script' with 50 threads.",
|
||||||
mv: "mv [src] [dest]<br>" +
|
mv: "mv [src] [dest]<br>" +
|
||||||
"Move the source file to the specified destination. This can also be used to rename files. " +
|
"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 " +
|
"This command only works for scripts and text files (.txt). This command CANNOT be used to " +
|
||||||
"convert to different file types. Examples: <br><br>" +
|
"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 hacking-controller.script scripts/hacking-controller.script<br>" +
|
||||||
"mv myScript.js myOldScript.js",
|
"mv myScript.js myOldScript.js",
|
||||||
nano: "nano [file name]<br>" +
|
nano: "nano [file name]<br>" +
|
||||||
|
Loading…
Reference in New Issue
Block a user