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/arguments_source.swift | |
| parent | 38d5d6de414ad69d6a7dc744e4aed39c488ba30f (diff) | |
Update swift files to use Bariloche
Diffstat (limited to 'Sources/arguments_source.swift')
| -rw-r--r-- | Sources/arguments_source.swift | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Sources/arguments_source.swift b/Sources/arguments_source.swift deleted file mode 100644 index 9615318..0000000 --- a/Sources/arguments_source.swift +++ /dev/null @@ -1,18 +0,0 @@ -// Source that reads track artist and name from the command line -class ArgumentsSource: Source { - - // Returns a track based on the arguments. It assumes the track artist - // will be the first argument, and the name will be the second, excluding - // any flags. - var currentTrack: Track? { - - if CommandLine.arguments.count >= 3 { - // expected usage: $ ./lyricli <artist> <name> - let trackName: String = CommandLine.arguments[2] - let trackArtist: String = CommandLine.arguments[1] - - return Track(withName: trackName, andArtist: trackArtist) - } - return nil - } -} |