You can use a custom configuration path by using the -c argument
| Platform | Location |
|---|---|
| Windows | C:\Users\user\AppData\Roaming\InioX\matugen\config\config.toml |
| Linux/Unix | /home/user/.config/matugen/config.toml |
| MacOS | /Users/user/Library/Application Support/com.InioX.matugen/config.toml |
The example config.toml file has comments for every option in the config.
# config_directory/config.toml
[templates.test] # First way of adding template
input_path = '~/.config/example/template.css'
output_path = '~/.config/example'
[templates] # Another way
test2 = { input_path = '~/.config/example/template2.css', output_path = '~/.config/example2' }
pre_hook: Executes a command inside the string BEFORE the template is
generatedpost_hook: Executes a command inside the string AFTER the template is
generated[templates.test]
# input_path = "some/path"
# output_path = "some/path"
pre_hook = 'echo "hello world"'
post_hook = "cat /some/file.txt"