On Mon, May 30, 2011 at 10:40:00AM +0200, Zygmunt Krynicki wrote:
$ lava-tool submit-job --farm https://mwhudson@validation.linaro.org test.json --token Token for mwhudson@validation.linaro.org: ***********
So we need a way of storing tokens. The easiest thing to do would be to store a token for a (username, host) pair, so you'd run a command like:
IMHO that should be python-keyring. Let's not reinvent .netrc again.
Good point.
And for the problem of having to store a directory of farms, why not just encourage shell aliases:
lava-tool submit-job --farm $myfarm
Storing a default (on first use, maybe?) seems sensible:
lava-tool submit-job --farm $myfarm Storing https://mwhudson@validation.linaro.org in ~/.lava/default
lava-tool submit-job Using https://mwhudson@validation.linaro.org from ~/.lava/default
How does that look?