diff options
Diffstat (limited to 'src/scripttools/debugging/scripts/commands/complete.qs')
-rw-r--r-- | src/scripttools/debugging/scripts/commands/complete.qs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/scripttools/debugging/scripts/commands/complete.qs b/src/scripttools/debugging/scripts/commands/complete.qs new file mode 100644 index 0000000..9d60312 --- /dev/null +++ b/src/scripttools/debugging/scripts/commands/complete.qs @@ -0,0 +1,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]); +} |