Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Config File Reference

Location

.donttouch.toml in the project root.

Full Example

[protect]
enabled = true
patterns = [
    "*.toml",
    "Cargo.lock",
    "migrations/**",
    ".env",
    ".env.*",
    "README.md",
    "LICENSE",
    "docker-compose.yml",
]

Schema

[protect]

FieldTypeRequiredDefaultDescription
enabledboolNotrueWhether protection is active
patternsstring[]Yes[]Glob patterns relative to project root

Notes

  • The config file itself is always protected when locked
  • Patterns use standard glob syntax
  • Paths are relative to the directory containing .donttouch.toml