oknozor / toml-bombadil

A dotfile manager with templating
MIT License
233 stars 24 forks source link

[BUG] Stop parsing non-vars toml files #270

Closed azzamsa closed 1 month ago

azzamsa commented 4 months ago

Describe the bug bombadil parse non vars toml files

$ bombadil link

Failed to parse '/home/user/dotfiles/cli/yazi/theme.toml'

Caused by:
     --> 4:15
      |
    4 | # : Manager {{{␊
      |               ^---
      |
      = expected a value that can be negated or an array of values

To Reproduce

yazi = { source = "cli/yazi", target = ".config/yazi", ignore = ["_themes/*"] }
❯ tree --level 1 cli/yazi/
cli/yazi
├── _themes
├── keymap.toml
└── theme.toml

Expected behavior just copy the theme.toml without parsing it.

Additional context

- OS Name:           Fedora 40
- GNOME Version:     46
- Windowing System:  Wayland
- Terminal:          Wezterm
- Shell:             Fish
❯ bombadil --version
Toml Bombadil 3.1.0
oknozor commented 1 month ago

unable to reproduce in 4.0.0, please update and reopen if needed