pwclient and multiple projects

Yann E. MORIN yann.morin.1998 at
Sun Jun 29 03:00:33 EST 2014

Hello All!

Currently, ~/.pwclientrc can only hold one Patchwork server and
associated credentials, and only one project.

Having to deal woth three different projects that use Patchwork, on two
different Patchwork server, everytime I switch project, I have to tweak
~/.pwclientrc. this happens many times a day, and can even be as
frequently as every few minutes or so. Having to edit the file so often
is highly inconvenient.

I was curious to see how to efficiently use pwclient when dealing with
multiple projects, and different patchwork instances.

I would also propose a change to ~/.pwclientrc so it can handle this
situation. Here is a proposal for a new format:




Then, with a bit of autocompletion magic, one could use pwclient as thus:

    pwclient list -p pr<TAB>

I can even help on the autocompletion stuff. As for pwclient, it is
Python, and I am not that proficient in Python; I can try to see if I
can hack something, but I'm afraid it would take time... :-(

Any comment?

Yann E. MORIN.

|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |

More information about the Patchwork mailing list