[PR #777] [CLOSED] feat: add playback state command to CLI #873

Closed
opened 2026-03-03 00:01:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/777
Author: @rrotaru
Created: 7/19/2025
Status: Closed

Base: masterHead: feat/add-playback-state-command


📝 Commits (1)

  • 1f093b6 Add 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 state subcommand that returns the current playback information in JSON format, matching the Spotify Web API's current playback endpoint.

Usage: spotify_player playback state

The 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.

## 📋 Pull Request Information **Original PR:** https://github.com/aome510/spotify-player/pull/777 **Author:** [@rrotaru](https://github.com/rrotaru) **Created:** 7/19/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feat/add-playback-state-command` --- ### 📝 Commits (1) - [`1f093b6`](https://github.com/aome510/spotify-player/commit/1f093b626d8194d21d2e1a2f8352cd9a493ab449) Add playback state command to CLI ### 📊 Changes **2 files changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `spotify_player/src/cli/commands.rs` (+1 -0) 📝 `spotify_player/src/cli/handlers.rs` (+3 -0) </details> ### 📄 Description Adds a new `playback state` subcommand that returns the current playback information in JSON format, matching the Spotify Web API's current playback endpoint. Usage: `spotify_player playback state` The 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](https://claude.ai/code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 00:01:13 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#873
No description provided.