feat(ipc): add an endpoint for getting current track (#911)

This commit is contained in:
tdakkota
2026-04-20 19:36:11 -07:00
committed by GitHub
parent 56546a9314
commit cfa45a4647
10 changed files with 94 additions and 18 deletions
+6
View File
@@ -717,6 +717,12 @@ func (a *App) checkFlagsAndSendIPCMsg(cli *ipc.Client) error {
return cli.Show()
case *FlagReloadTheme:
return cli.ReloadTheme()
case *FlagCurrentTrack:
data, err := cli.CurrentTrack()
if err == nil {
fmt.Println(data)
}
return err
case VolumeCLIArg >= 0:
return cli.SetVolume(VolumeCLIArg)
case VolumePctCLIArg != 0: