Lazarus
Installation => Linux => Topic started by: mai on October 31, 2017, 11:56:59 am
-
would it not be cool, if every text mode app in Pascal came with automatic bash or fish command-completion ?
that would remove a very bothersome aspect of CLI apps which are constantly unnerving since you often have to look up even the most trivial little things that an app can do for you via a cryptic "command line switch".
but a quick TAB-TAB completion would be much faster than typing "man app" (followed by bothersome read up for the umpteenth time :'( ) or sth.
it sure is possible somehow... ;)
https://github.com/urfave/cli/issues/351 (https://github.com/urfave/cli/issues/351)
https://github.com/fish-shell/fish-shell/issues/2856 (https://github.com/fish-shell/fish-shell/issues/2856)
-
Maybe this could help? http://www.tldp.org/LDP/abs/html/tabexpansion.html
-
the wizard-generated Std. Pascal CLI app should maybe put data into /etc/bash_completion/...
-
Completion for fpc or lazbuild would be nice, but I suspect no one has done it because the development lifecycle is GUI-driven. I would like to see LCL code divorced from Lazarus proper, but this looks like it would take quite a bit of work.
Until then, most of the options have no long forms to complete. Addition of command long forms might be a good idea. I have no idea who will do it.