On Mon, May 30, 2011 at 10:40:00AM +0200, Zygmunt Krynicki wrote:
> $ lava-tool submit-job --farm https://[email protected]
> test.json --token
> Token for [email protected]: ***********
>
> >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://[email protected] in ~/.lava/default
lava-tool submit-job
Using https://[email protected] from ~/.lava/default
How does that look?
--
Christian Robottom Reis | [+55] 16 9112 6430 | http://launchpad.net/~kiko
Linaro Engineering VP | [ +1] 612 216 4935 | http://async.com.br/~kiko
_______________________________________________
linaro-dev mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-dev