mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 14:13:48 +01:00
terminal autocompletes darkweb better
This commit is contained in:
parent
01a5911ee1
commit
3ab23df8d7
@ -5,7 +5,8 @@ import {substituteAliases, printAliases,
|
|||||||
import {CONSTANTS} from "./Constants.js";
|
import {CONSTANTS} from "./Constants.js";
|
||||||
import {Programs} from "./CreateProgram.js";
|
import {Programs} from "./CreateProgram.js";
|
||||||
import {executeDarkwebTerminalCommand,
|
import {executeDarkwebTerminalCommand,
|
||||||
checkIfConnectedToDarkweb} from "./DarkWeb.js";
|
checkIfConnectedToDarkweb,
|
||||||
|
DarkWebItems} from "./DarkWeb.js";
|
||||||
import {Engine} from "./engine.js";
|
import {Engine} from "./engine.js";
|
||||||
import {FconfSettings, parseFconfSettings,
|
import {FconfSettings, parseFconfSettings,
|
||||||
createFconf} from "./Fconf.js";
|
createFconf} from "./Fconf.js";
|
||||||
@ -409,9 +410,12 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (input.startsWith ("buy ")) {
|
if (input.startsWith ("buy ")) {
|
||||||
return [Programs.BruteSSHProgram, Programs.FTPCrackProgram, Programs.RelaySMTPProgram,
|
let options = [];
|
||||||
Programs.HTTPWormProgram, Programs.SQLInjectProgram, Programs.DeepscanV1,
|
for(const i in DarkWebItems) {
|
||||||
Programs.DeepscanV2].concat(Object.keys(GlobalAliases));
|
const item = DarkWebItems[i]
|
||||||
|
options.push(item.program);
|
||||||
|
}
|
||||||
|
return options.concat(Object.keys(GlobalAliases));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input.startsWith("scp ") && index == 1) {
|
if (input.startsWith("scp ") && index == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user