From 207c4c54fcd9bb3d64654d67286d36ffa7da9d3e Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Wed, 22 Nov 2023 16:00:54 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20=E2=80=94=20Update=20agent=20doc?= =?UTF-8?q?=20(on=20using=20the=20env=20vars)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- argos/commands.py | 5 +++++ docs/cli.md | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/argos/commands.py b/argos/commands.py index f12fac2..e142203 100644 --- a/argos/commands.py +++ b/argos/commands.py @@ -40,6 +40,11 @@ def agent(server, auth, max_tasks, wait_time, log_level): """Get and run tasks to the provided server. Will wait for new tasks. Usage: argos agent https://argos.server "auth-token-here" + + Alternatively, you can use the following environment variables to avoid passing + arguments to the agent on the command line: + ARGOS_AGENT_SERVER_URL=https://argos.server + ARGOS_AGENT_TOKEN=auth-token-here """ click.echo("Starting argos agent. Will retry forever.") from argos.logging import logger diff --git a/docs/cli.md b/docs/cli.md index 6956233..5427c9c 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -46,6 +46,11 @@ Usage: argos agent [OPTIONS] SERVER AUTH Usage: argos agent https://argos.server "auth-token-here" + Alternatively, you can use the following environment variables to avoid passing + arguments to the agent on the command line: + ARGOS_AGENT_SERVER_URL=https://argos.server + ARGOS_AGENT_TOKEN=auth-token-here + Options: --max-tasks INTEGER Number of concurrent tasks this agent can run --wait-time INTEGER Waiting time between two polls on the server @@ -121,4 +126,4 @@ Options: ``` \ No newline at end of file +-->