summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/scripts/commands/complete.qs
blob: 9d603124275f21637cc31dc738deda83f6a62a71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
name = "complete";

group = "void";

shortDescription = "List the completions for the rest of the line as a command";

longDescription = "";

function execute() {
    var prefix = (arguments.length > 0) ? arguments[0] : "";
    var completions = getCommandCompletions(prefix);
    for (var i = 0; i < completions.length; ++i)
        message(completions[i]);
}