3 class LyricliCommand: Command {
4 let usage: String? = "Fetch the lyrics for current playing track or the one specified via arguments"
7 let version = Flag(short: "v", long: "version", help: "Prints the version.")
8 let showTitle = Flag(short: "t", long: "title", help: "Shows title of song if true")
9 let listSources = Flag(short: "l", long: "list", help: "Lists all sources")
12 let enableSource = Argument<String>(name: "source",
13 kind: .named(short: "e", long: "enable"),
15 help: "Enables a source")
16 let disableSource = Argument<String>(name: "source",
17 kind: .named(short: "d", long: "disable"),
19 help: "Disables a source")
20 let resetSource = Argument<String>(name: "source",
21 kind: .named(short: "r", long: "reset"),
23 help: "Resets a source")
25 // Positional Arguments
26 let artist = Argument<String>(name: "artist",
29 help: "The name of the artist")
30 let trackName = Argument<String>(name: "trackName",
33 help: "The name of the track")