mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
MISC: Add "--tail" to default autocomplete options (#2103)
This commit is contained in:
@@ -273,7 +273,13 @@ export async function getTabCompletionPossibilities(terminalText: string, baseDi
|
||||
//fail silently if the script fails to compile (e.g. syntax error)
|
||||
return;
|
||||
}
|
||||
if (!loadedModule || !loadedModule.autocomplete) return; // Doesn't have an autocomplete function.
|
||||
if (!loadedModule) {
|
||||
return;
|
||||
}
|
||||
// Return "--tail" if the player does not define the autocomplete function.
|
||||
if (!loadedModule.autocomplete) {
|
||||
return ["--tail"];
|
||||
}
|
||||
|
||||
const runArgs = { "--tail": Boolean, "-t": Number, "--ram-override": Number };
|
||||
let flags = {
|
||||
|
||||
Reference in New Issue
Block a user