roon-tagger

A CLI utility for tagging music files with (mostly) roon specific metadata


Project maintained by babysnakes Hosted on GitHub Pages — Theme by mattgraham

Configure Cli Behavior - configure

Configure lets you control certain tool behaviors:

Logging

Logging in roon-tagger is always written to a file and never interferes with the console output. By default, the log file is roon-tagger.log in the current working directory and the log level is None. While the default config will not produce any logs (because of the None level) if you specify higher verbosity level as command arguments it will log to the log file. You can also specify absolute path as the logging file but this is less recommended.

Editor

Editor can be used in various places in the app for quickly editing specific tag for many files (A good example is editing the titles of classical music to quickly format the tracks title to match work: movement format). By default there’s no editor configured and whenever you need to edit a file it will create a temporary file in the current directory, let you edit it outside of the terminal and then press Enter to read the updated file. However if you want to edit the file in the foreground (with either a terminal app or a GUI window) you need to configure an editor.

There are certain limitations when configuring the editor:

There are also certain guidelines that should be followed to avoid issues:

Example Usage

Configure log file with level and alternate log file (in working directory):

roon-tagger configure --log-file output.log --log-level debug

Configure editor command on unix (without arguments - file name will be appended at runtime):

roon-tagger configure --editor /usr/bin/nvim

Configure editor command on Windows/Powershell with required arguments (file name will be appended as last argument at runtime). Note that we supply two parameters to code (-w for editing in foreground and -n for opening in new window):

roon-tagger configure --editor-with-args 'C:\Path\To\Code.cmd' '-w,-n'

Get full usage:

roon-tagger configure -h