]> git.r.bdr.sh - rbdr/lyricli/blob - Sources/lyricli/lyricli_command.swift
28ad44ae8c60456e931921293a5025b5fb01dc24
[rbdr/lyricli] / Sources / lyricli / lyricli_command.swift
1 import Bariloche
2
3 class LyricliCommand: Command {
4 let usage: String? = "Fetch the lyrics for current playing track or the one specified via arguments"
5
6 // Flags
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: "listSources", help: "Lists all sources")
10
11 // Named Arguments
12 let enableSource = Argument<String>(name: "source",
13 kind: .named(short: "e", long: "enableSource"),
14 optional: true,
15 help: "Enables a source")
16 let disableSource = Argument<String>(name: "source",
17 kind: .named(short: "d", long: "disableSource"),
18 optional: true,
19 help: "Disables a source")
20 let resetSource = Argument<String>(name: "source",
21 kind: .named(short: "r", long: "resetSource"),
22 optional: true,
23 help: "Resets a source")
24
25 // Positional Arguments
26 let artist = Argument<String>(name: "artist",
27 kind: .positional,
28 optional: true,
29 help: "The name of the artist")
30 let trackName = Argument<String>(name: "trackName",
31 kind: .positional,
32 optional: true,
33 help: "The name of the track")
34
35 func run() -> Bool {
36 return true
37 }
38 }