Skip to content

Commit e66cc55

Browse files
authored
parse environment variables (#886)
Make librespot able to parse environment variables for options and flags. To avoid name collisions environment variables must be prepended with `LIBRESPOT_` so option/flag `foo-bar` becomes `LIBRESPOT_FOO_BAR`. Verbose logging mode (`-v`, `--verbose`) logs all parsed environment variables and command line arguments (credentials are redacted).
1 parent bbd575e commit e66cc55

File tree

2 files changed

+134
-74
lines changed

2 files changed

+134
-74
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- [main] Don't evaluate options that would otherwise have no effect.
1313
- [playback] `alsa`: Improve `--device ?` functionality for the alsa backend.
1414
- [contrib] Hardened security of the systemd service units
15+
- [main] Verbose logging mode (`-v`, `--verbose`) now logs all parsed environment variables and command line arguments (credentials are redacted).
1516

1617
### Added
1718
- [cache] Add `disable-credential-cache` flag (breaking).
1819
- [main] Use different option descriptions and error messages based on what backends are enabled at build time.
1920
- [main] Add a `-q`, `--quiet` option that changes the logging level to warn.
2021
- [main] Add a short name for every flag and option.
22+
- [main] Add the ability to parse environment variables.
2123

2224
### Fixed
2325
- [main] Prevent hang when discovery is disabled and there are no credentials or when bad credentials are given.

0 commit comments

Comments
 (0)