summaryrefslogtreecommitdiff
path: root/Sources/arguments_source.swift
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2020-03-09 21:58:19 -0500
committerBen Beltran <ben@nsovocal.com>2020-03-09 21:58:19 -0500
commitc96090328d49fddfe0cc22609b3f97250502c15b (patch)
treedfe3e0fa93d3e91b3574db2a9b32d7c5ed57ab3b /Sources/arguments_source.swift
parent413361cf1ad1110382b096d6e965e558c6ad598d (diff)
parentbd151cc4d229df466df4a9fcb450f34e43570c99 (diff)
Merge branch 'release/1.0.0'1.0.0
Diffstat (limited to 'Sources/arguments_source.swift')
-rw-r--r--Sources/arguments_source.swift18
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
- }
-}