diff options
author | C. McEnroe | 2020-02-07 21:30:25 -0500 |
---|---|---|
committer | C. McEnroe | 2020-02-07 21:39:56 -0500 |
commit | fe5fd897052abd1909d1536056936a0417666459 (patch) | |
tree | e253d8786b633a0002b156b1da1d9d6eae320f6e /command.c | |
parent | a26c9ae0bc4b74b250031492b6c5a0bee39dd4d8 (diff) |
Populate completion with commands
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/command.c b/command.c index 3215322..41aacc9 100644 --- a/command.c +++ b/command.c @@ -136,3 +136,9 @@ void command(size_t id, char *input) { } } } + +void commandComplete(void) { + for (size_t i = 0; i < ARRAY_LEN(Commands); ++i) { + completeAdd(None, Commands[i].cmd, Default); + } +} |