On Mon, May 30, 2011 at 4:35 PM, Christian Robottom Reis kiko@linaro.org wrote:
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?
I prefer the ability to explicitly register shortnames for farms like I proposed further above.
We can also have a shortname "default" or so that would be used if you don't provide a --farm short-name ;).
Was there any argument against having shortname feature? or did you guys just ignore me ;)?