TERMINAL: Stop terminal scp from revealing and copying to unreachable servers (#1542)

This commit is contained in:
Yichi Zhang
2024-08-03 23:38:00 -07:00
committed by GitHub
parent d9394db543
commit 0dd42a1d57
3 changed files with 18 additions and 21 deletions
@@ -125,7 +125,12 @@ export async function getTabCompletionPossibilities(terminalText: string, baseDi
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) });
const addServerNames = () =>
addGeneric({
iterable: GetAllServers()
.filter((server) => server.serversOnNetwork.length !== 0)
.map((server) => server.hostname),
});
const addScripts = () => addGeneric({ iterable: currServ.scripts.keys(), usePathing: true });
const addTextFiles = () => addGeneric({ iterable: currServ.textFiles.keys(), usePathing: true });
const addCodingContracts = () => {