diff options
| author | Ben Beltran <ben@nsovocal.com> | 2020-03-09 21:57:38 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2020-03-09 21:57:38 -0500 |
| commit | bd151cc4d229df466df4a9fcb450f34e43570c99 (patch) | |
| tree | dfe3e0fa93d3e91b3574db2a9b32d7c5ed57ab3b /Sources/arguments_source.swift | |
| parent | 38d5d6de414ad69d6a7dc744e4aed39c488ba30f (diff) | |
| parent | 9931580d9185e9123b6d45a45f20dbf929bb25b7 (diff) | |
Merge branch 'feature/rbdr-update-swift' into develop
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 - } -} |