Zulip Chat Archive

Stream: lean4

Topic: binaries with autocompletion


Arthur Paulino (Jan 28 2022 at 22:38):

How to create executable binary files with tab autocompletion?
(I'm wondering how to create Lean cli apps with autocompletion)

Henrik Böving (Jan 28 2022 at 23:04):

If by autocompletion you are referrring to stuff like getting the ls options when typing ls -<TAB> that's the job of your shell and has to be set up in a shell dependent way for all programs. If you are talking about autocompletion in for example a REPL like program, that would be handled by readline stuff.

Arthur Paulino (Jan 28 2022 at 23:06):

I'll try to explain with an example. Suppose I want lake to autocomplete "build" for me when I type lake b<TAB>. How does that wiring work?


Last updated: Dec 20 2023 at 11:08 UTC