mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #886] [MERGED] parse environment variables #1130
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/886
Author: @JasonLG1979
Created: 11/23/2021
Status: ✅ Merged
Merged: 12/1/2021
Merged by: @roderickvd
Base:
dev← Head:parse_env_var📝 Commits (5)
a239eb2parse environment variablese2c3808Merge branch 'librespot-org:dev' into parse_env_varca783cflog all parsed environment variables and command line arguments819c4f8Merge branch 'dev' into parse_env_var7205db0Use to_str instead of into_string📊 Changes
2 files changed (+134 additions, -74 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
src/main.rs(+132 -74)📄 Description
Make librespot able to parse environment variables for options and flags. To avoid name collisions environment variables must be prepended with
LIBRESPOT_so option/flagfoo-barbecomesLIBRESPOT_FOO_BAR.Verbose logging mode (
-v,--verbose,LIBRESPOT_VERBOSE=) now logs all parsed environment variables and command line arguments (credentials are redacted).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.