Added support for Console auto-complete

This commit is contained in:
2019-08-08 20:23:48 -05:00
parent c89586c286
commit a82e71cea7
5 changed files with 71 additions and 8 deletions

View File

@@ -17,6 +17,8 @@ class IMICFPS
if command
if cmd = Command.find(command)
cmd.usage
else
"#{Style.error(command)} is not a command"
end
else
"Available commands:\n#{Command.list_commands.map { |cmd| "#{Style.highlight(cmd.command)}" }.join(', ')}"