More commands
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import { printSyntax, commandList } from "./definitions";
|
||||
|
||||
//const commandList = ["about", "navigate", "external", "help", "ed", "nano"];
|
||||
|
||||
export function commandCompletion(input: string): string[] {
|
||||
if (input === "") return [];
|
||||
const candidates = commandList.filter(cmd => cmd.name.substring(0, input.length) === input).map(cmd => cmd.name);
|
||||
|
||||
Reference in New Issue
Block a user