— Allow to use env vars for agent’s token and server URL. Fix #13

Avoid to leak the token in `htop` for ex.
This commit is contained in:
Luc Didry 2023-11-22 13:48:42 +01:00
parent e652659fb6
commit fd6fdfefa9

View file

@ -18,8 +18,8 @@ def server():
@cli.command()
@click.argument("server")
@click.argument("auth")
@click.argument("server", envvar="ARGOS_AGENT_SERVER_URL")
@click.argument("auth", envvar="ARGOS_AGENT_TOKEN")
@click.option(
"--max-tasks",
default=10,