mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[PR #777] [CLOSED] feat: add playback state command to CLI #1810
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1810
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/aome510/spotify-player/pull/777
Author: @rrotaru
Created: 7/19/2025
Status: ❌ Closed
Base:
master← Head:feat/add-playback-state-command📝 Commits (1)
1f093b6Add playback state command to CLI📊 Changes
2 files changed (+4 additions, -0 deletions)
View changed files
📝
spotify_player/src/cli/commands.rs(+1 -0)📝
spotify_player/src/cli/handlers.rs(+3 -0)📄 Description
Adds a new
playback statesubcommand that returns the current playback information in JSON format, matching the Spotify Web API's current playback endpoint.Usage:
spotify_player playback stateThe command leverages existing infrastructure by using the Key::Playback enum variant and current_playback() function to provide complete playback context including track info, device details, progress, and playback settings.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.