mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 11:27:04 +02:00
CODEBASE: Expand lint rules, and Aliases are stored as maps (#501)
This commit is contained in:
@@ -120,8 +120,8 @@ export async function getTabCompletionPossibilities(terminalText: string, baseDi
|
||||
}
|
||||
}
|
||||
|
||||
const addAliases = () => addGeneric({ iterable: Object.keys(Aliases) });
|
||||
const addGlobalAliases = () => addGeneric({ iterable: Object.keys(GlobalAliases) });
|
||||
const addAliases = () => addGeneric({ iterable: Aliases.keys() });
|
||||
const addGlobalAliases = () => addGeneric({ iterable: GlobalAliases.keys() });
|
||||
const addCommands = () => addGeneric({ iterable: gameCommands });
|
||||
const addDarkwebItems = () => addGeneric({ iterable: Object.values(DarkWebItems).map((item) => item.program) });
|
||||
const addServerNames = () => addGeneric({ iterable: GetAllServers().map((server) => server.hostname) });
|
||||
@@ -201,11 +201,8 @@ export async function getTabCompletionPossibilities(terminalText: string, baseDi
|
||||
if (onFirstCommandArg && !relativeDir) addDirectories();
|
||||
return possibilities;
|
||||
|
||||
case "check":
|
||||
case "kill":
|
||||
case "mem":
|
||||
case "tail":
|
||||
addScripts();
|
||||
if (onFirstCommandArg) addScripts();
|
||||
return possibilities;
|
||||
|
||||
case "connect":
|
||||
@@ -261,8 +258,13 @@ export async function getTabCompletionPossibilities(terminalText: string, baseDi
|
||||
if (onFirstCommandArg) {
|
||||
addPrograms();
|
||||
addCodingContracts();
|
||||
addScripts();
|
||||
} else {
|
||||
const options = await scriptAutocomplete();
|
||||
if (options) addGeneric({ iterable: options, usePathing: false });
|
||||
}
|
||||
// Spill over into next cases
|
||||
return possibilities;
|
||||
|
||||
case "check":
|
||||
case "tail":
|
||||
case "kill":
|
||||
|
||||
Reference in New Issue
Block a user