How to write a Ruby command line app that supports tab completion?

后端 未结 3 1108
野趣味
野趣味 2020-12-23 10:25

I want to write a command line app, a shell if you will, in Ruby.

I want the user to be able to press Tab at certain points and offer completion of values.

H

3条回答
  •  無奈伤痛
    2020-12-23 11:20

    Well, I suggest that you use Emacs to run your command line Ruby app. In Emacs, my SO friends just recently helped me to solve the Autocomplete tab completion (here and here). Autocomplete seems to be the most intelligent word completion tool to date.

提交回复
热议问题