1 /// The main Lyricli interface
3 public static var version = "0.0.0-feature/option-parsing"
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)
23 print("Lyrics not found :(")
28 print("No Artist/Song could be found :(")
32 public static func printSources() {
33 print("Listing Sources: Not yet implemented")
36 public static func enableSource(_ sourceName: String) {
37 print("Enable source \(sourceName): Not yet implemented")
40 public static func disableSource(_ sourceName: String) {
41 print("Disable source \(sourceName): Not yet implemented")
44 public static func resetSource(_ sourceName: String) {
45 print("Reset source \(sourceName): Not yet implemented")
48 private static func printTitle(_ track: Track) {
49 print("\(track.artist) - \(track.name)")