3 A command line tool to show the lyrics of your current song.
7 Lyricli can be invoked with the command `lrc`.
13 When you run it without arguments, it will look in the available source
14 to try to find a playing song and extract the lyrics. If you include the
15 `-t` flag, it will show the song and artist names before the lyrics.
18 $ lrc [-t] <artist_name> <song_name>
21 When you run it with arguments, it will use them to search for the
22 lyrics. This won't work if you manually disable the arguments source in
23 your configuration file. If you include the `-t` flag, it will show the
24 song and artist names before the lyrics.
28 In order to configure sources, lyricli provides a few commands:
30 * `lrc -l` or `lrc --list-sources` lists the available sources. Enabled
31 sourcess will have a `*`
32 * `lrc -e` or `lrc --enable-source <source>` enables a source
33 * `lrc -d` or `lrc --disable-source <source>` disables a source without
34 resetting its configuration.
35 * `lrc -r` or `lrc --reset-source <source>` resets the configuration
36 for a source and disables it.
38 And you can print the help or the version:
40 * `lrc -v` or `lrc --version` prints the version
41 * `lrc -h` or `lrc --help` display built-in help
45 The build has only been tested on OSX using Swift 5.8 Building defaults
46 to the debug configuration.
52 ## Installing from source
54 Builds lyricli in release configuration and copies the executable as
55 `lrc` to `/usr/local/bin`
61 ### Installing to a custom directory
63 This can be done by overriding the `install_path` variable
66 make install install_path=/opt/bin
69 ## Linting and Generating Documentation
71 We use [swiftlint][swiftlint] to lint, and `make lint` to run it.
72 We use [jazzy][jazzy] and [SourceKitten][sourcekitten] to document, and
73 `make document` to generate it.
77 No tests at the moment 😬... but the makefile is mapped to run the swift
84 [swiftlint]: https://github.com/realm/SwiftLint
85 [jazzy]: https://github.com/realm/jazzy
86 [sourcekitten]: https://github.com/jpsim/SourceKitten