mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
CLI: Let ServerProfiler.exe autocomplete servers (#2356)
This commit is contained in:
@@ -14,6 +14,7 @@ import { enums } from "../NetscriptFunctions";
|
||||
import { TerminalCommands } from "./Terminal";
|
||||
import { Terminal } from "../Terminal";
|
||||
import { parseUnknownError } from "../utils/ErrorHelper";
|
||||
import { CompletedProgramName } from "@enums";
|
||||
|
||||
/** Suggest all completion possibilities for the last argument in the last command being typed
|
||||
* @param terminalText The current full text entered in the terminal
|
||||
@@ -231,6 +232,8 @@ export async function getTabCompletionPossibilities(terminalText: string, baseDi
|
||||
addPrograms();
|
||||
addCodingContracts();
|
||||
addScripts();
|
||||
} else if (commandArray[1] === CompletedProgramName.serverProfiler) {
|
||||
addServerNames();
|
||||
} else {
|
||||
const options = await scriptAutocomplete();
|
||||
if (options) addGeneric({ iterable: options, usePathing: false });
|
||||
|
||||
Reference in New Issue
Block a user