gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[task #15799] Add the autocomplete feature to gnuastro


From: Mohammad Akhlaghi
Subject: [task #15799] Add the autocomplete feature to gnuastro
Date: Sun, 25 Oct 2020 17:39:06 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0

Follow-up Comment #1, task #15799 (project gnuastro):

This is indeed a very useful feature! Thanks a lot Pedram for suggesting it.

If you can get familiar with the completion concept
<https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion.html#Programmable-Completion>
and commands
<https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion-Builtins.html>,
you can write a "completion script" for one of the Gnuastro programs. The
process for the other programs will be very similar.

We can then easily write a script to be included in Gnuastro's building steps
(in particular in 'doc/Makefile.am') to automatically generate this script for
all the programs when the developer is building Gnuastro. We can use the
output of the '--help' option to do this, or at a lower-level, go and parse
all the 'args.h' files of the programs
<https://www.gnu.org/software/gnuastro/manual/html_node/Mandatory-source-code-files.html>.

In fact, 'doc/Makefile.am' already uses the output of '--help' to
automatically construct the Man pages. Like the Man pages, the Bash completion
scripts can also be installed in 'doc/Makefile.am'.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/task/?15799>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]