* * *

Author Topic: bash-completion for Pascal CLI app automagically ?  (Read 366 times)

mai

  • Full Member
  • ***
  • Posts: 133
  • truther
bash-completion for Pascal CLI app automagically ?
« 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/fish-shell/fish-shell/issues/2856
« Last Edit: November 15, 2017, 12:13:56 am by mai »

penguiner

  • New member
  • *
  • Posts: 7
Re: bash-completion for Pascal CLI app automagically ?
« Reply #1 on: November 13, 2017, 10:38:03 pm »

mai

  • Full Member
  • ***
  • Posts: 133
  • truther
Re: bash-completion for Pascal CLI app automagically ?
« Reply #2 on: November 15, 2017, 12:28:07 am »
the wizard-generated Std. Pascal CLI app should maybe put data into /etc/bash_completion/...

R0b0t1

  • Full Member
  • ***
  • Posts: 136
Re: bash-completion for Pascal CLI app automagically ?
« Reply #3 on: November 15, 2017, 06:37:13 am »
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.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus