Rotate and annotate logs nightly:
0 2 * * * /usr/local/bin/writeat --target /var/log/cron.log --position begin --text "=== Daily Reset $(date) ===\n" --atomic
Call writeat from within Vim to apply external transformations: write at command station v1.0.4
:!writeat --target % --position after:line:1 --text "// Updated on %date%"
Breaking changes:
New dependencies:
Migration script provided:
./upgrade_to_v1.0.4.sh --config old_config.conf --auto-fix-vars
You can now embed variables using var and pass them via --vars: Rotate and annotate logs nightly: 0 2 *
writeat --target config.ini --position after:section --text "key= value " --vars "value=123"
Generate boilerplate code by writing at marker comments: Call writeat from within Vim to apply external
writeat --target src/main.rs \
--position before:pattern:"// INSERT FUNCTIONS HERE" \
--text "fn new_feature() -> String \n \"Hello from v1.0.4\".to_string()\n\n\n"