1 /// The main Lyricli interface
3 public static var version = "0.0.0"
5 public static var showTitle = false
7 public static func printLyrics() {
9 let sourceManager = SourceManager()
11 if let currentTrack = sourceManager.currentTrack {
13 let engine = LyricsEngine(withTrack: currentTrack)
15 if let lyrics = engine.lyrics {
17 printTitle(currentTrack)
22 print("Lyrics not found :(")
26 print("No Artist/Song could be found :(")
30 public static func printSources() {
31 print("Listing Sources: Not yet implemented")
34 public static func enableSource(_ sourceName: String) {
35 print("Enable source \(sourceName): Not yet implemented")
38 public static func disableSource(_ sourceName: String) {
39 print("Disable source \(sourceName): Not yet implemented")
42 public static func resetSource(_ sourceName: String) {
43 print("Reset source \(sourceName): Not yet implemented")
46 private static func printTitle(_ track: Track) {
47 print("\(track.artist) - \(track.name)")