diff options
| author | Ben Beltran <ben@nsovocal.com> | 2019-04-14 16:08:54 +0200 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2019-04-14 16:08:54 +0200 |
| commit | fdafe0d4012af00e0d9cb613a0146924b8fd8eaf (patch) | |
| tree | 6e1b145d57e5f3da54a3ddb57e40fbf6b9a2d752 /Sources/lyricli.swift | |
| parent | 38d5d6de414ad69d6a7dc744e4aed39c488ba30f (diff) | |
Update swift files to use Bariloche
Diffstat (limited to 'Sources/lyricli.swift')
| -rw-r--r-- | Sources/lyricli.swift | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/Sources/lyricli.swift b/Sources/lyricli.swift deleted file mode 100644 index 8aeb5c0..0000000 --- a/Sources/lyricli.swift +++ /dev/null @@ -1,60 +0,0 @@ -// The main class, handles all the actions that the executable will call -class Lyricli { - - // Version of the application - static var version = "0.3.0" - - // Flag that controls whether we should show the track artist and name before - // the lyrics - static var showTitle = false - - // Obtains the name of the current track from a source, fetches the lyrics - // from an engine and prints them - static func printLyrics() { - - let sourceManager = SourceManager() - - if let currentTrack = sourceManager.currentTrack { - let engine = LyricsEngine(withTrack: currentTrack) - - if let lyrics = engine.lyrics { - if showTitle { - printTitle(currentTrack) - } - - print(lyrics) - } else { - print("Lyrics not found :(") - } - - } else { - print("No Artist/Song could be found :(") - } - } - - // Print the currently available sources - static func printSources() { - print("Listing Sources: Not yet implemented") - } - - // Runs the enable method of a source and writes the configuration to set it - // as enabled - static func enableSource(_ sourceName: String) { - print("Enable source \(sourceName): Not yet implemented") - } - - // Remove a source from the enabled sources configuration - static func disableSource(_ sourceName: String) { - print("Disable source \(sourceName): Not yet implemented") - } - - // Removes any configuration for a source, and disables it - static func resetSource(_ sourceName: String) { - print("Reset source \(sourceName): Not yet implemented") - } - - // Prints the track artist and name - private static func printTitle(_ track: Track) { - print("\(track.artist) - \(track.name)") - } -} |