Hi everyone,

I started a script to enable bash-completion with trytond here:

http://codereview.appspot.com/3997041/

You have to source this file to make it work.
What it provides:

- completion of all flag

- completion of module names when using the --update flag: search them
  in "path_to_executable/../trytond/modules", is there a better way to
  find them?

- database completion with --database: currently only posqtgresql
  databases and only if bash-completion for psql already exist and is
  enabled (https://launchpad.net/bugs/164772).

Another question is that currently, this file is in repo_path/etc, is
this the best place and is the name ok?

Also, its my first non-personal bash program, so feel free to advise
better ways to write this (on the issue)!

Once this base is ok, I will extend it to support completion on other
flags, create the same for tryton and handle in in setup.py.


-- 

Bertrand Chenal

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email: [email protected]
Website: http://www.b2ck.com/

-- 
[email protected] mailing list

Reply via email to