From fd6fdfefa97ce93327962171c697413de29e43eb Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Wed, 22 Nov 2023 13:48:42 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E2=80=94=20Allow=20to=20use=20env?= =?UTF-8?q?=20vars=20for=20agent=E2=80=99s=20token=20and=20server=20URL.?= =?UTF-8?q?=20Fix=20#13?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoid to leak the token in `htop` for ex. --- argos/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/argos/commands.py b/argos/commands.py index 71ba697..ed5e4a2 100644 --- a/argos/commands.py +++ b/argos/commands.py @@ -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,