]> git.r.bdr.sh - rbdr/lyricli/blobdiff - Sources/Lyricli.swift
Add the arguments source
[rbdr/lyricli] / Sources / Lyricli.swift
index 6c73e028e2ae23a0f8057ee0d5d594b4ba1c00ba..d55b500af960bb8b39c5c571ea78fbe91bec4aff 100644 (file)
@@ -3,7 +3,16 @@ public class Lyricli {
     public static var version = "0.0.0-feature/option-parsing"
 
     public static func printLyrics() {
-        print("Getting Lyrics: Not yet implemented")
+
+        let sourceManager = SourceManager()
+
+        if let currentTrack = sourceManager.currentTrack {
+            print(currentTrack.artist)
+            print(currentTrack.name)
+        }
+        else {
+            print("Current track not found")
+        }
     }
 
     public static func printTitle() {