feat(config): add configuration management for Yarr TUI app
Some checks failed
build / checks-matrix (push) Successful in 19m23s
build / checks-build (push) Has been cancelled
docs / docs (push) Has been cancelled
build / codecov (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-10-08 15:45:08 +05:30
parent 1be1e19c43
commit 48e26332a3
3 changed files with 371 additions and 0 deletions

20
yarr.toml.example Normal file
View File

@@ -0,0 +1,20 @@
# Yarr Configuration File
# Copy this file to one of the following locations:
# - ./yarr.toml (current directory)
# - ~/.config/yarr/config.toml (user config directory)
[sonarr]
# Sonarr server URL (required)
# Example: "http://localhost:8989" or "https://sonarr.example.com"
url = "http://localhost:8989"
# Sonarr API key (required)
# You can find this in Sonarr under Settings > General > Security > API Key
api_key = "your-api-key-here"
# Environment variables can also be used:
# YARR_SONARR_URL="http://localhost:8989"
# YARR_SONARR_API_KEY="your-api-key-here"
#
# Command line arguments take highest priority:
# yarr --sonarr-url="http://localhost:8989" --sonarr-api-key="your-key"