From f1a75cab8c93c920de9cdaba6217016a3f9a1b23 Mon Sep 17 00:00:00 2001 From: tech Date: Wed, 18 Mar 2026 14:02:47 +0800 Subject: [PATCH] docs: update CLAUDE.md with config file usage --- CLAUDE.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 1b7e511..7b8818c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -33,4 +33,23 @@ uv run pytest ## Configuration -Credentials can be passed via command-line options (`-u/--url`, `-U/--username`, `-P/--password`) or environment variables (`JENKINS_URL`, `JENKINS_USERNAME`, `JENKINS_PASSWORD` or `JENKINS_TOKEN`). +Credentials are read from `~/.config/zzpyjenkins/config.toml`. Create this file with your Jenkins server configurations: + +```toml +[work] +url = "https://jenkins.work.com" +username = "myuser" +password = "mypassword" + +[home] +url = "http://localhost:8080" +username = "admin" +password = "admin123" +``` + +Use `-s/--server` option to select which server to use: + +```bash +zzpyjenkins -s work info +zzpyjenkins --server home list +```