Skip to content

feat: read repo and root from a TOML config file - #16

Merged
llbbl merged 1 commit into
mainfrom
feat/config-file
Oct 18, 2026
Merged

llbbl merged 1 commit into
mainfrom
feat/config-file

Conversation

@llbbl

@llbbl llbbl commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Repo and root can be set in $XDG_CONFIG_HOME/agentsync/config.toml (default ~/.config/agentsync/config.toml) with the keys repo and root.
  • Precedence is flag > env var > file; a blank value counts as unset.
  • Fail closed: a file that cannot be read, does not parse, has an unknown key or an empty value refuses with exit 2, naming the file.
  • Runs now print a Repo: report line, and Repo and Root both say where they came from.
  • First dependency: github.com/BurntSushi/toml v1.6.0.

Verification

just check passes; the new tests were confirmed to fail when the behaviour they guard is broken.

Closes #3

Repo and root can be set in $XDG_CONFIG_HOME/agentsync/config.toml (default ~/.config/agentsync/config.toml). Precedence is flag, then env var, then the file. A file that cannot be read, does not parse, has an unknown key or an empty value refuses with exit 2 naming the file. Runs report where Repo and Root came from. Adds github.com/BurntSushi/toml, the first dependency.
@llbbl
llbbl merged commit 8ca455c into main Oct 18, 2026
2 checks passed
@llbbl
llbbl deleted the feat/config-file branch October 18, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: read repo and root from a TOML config file

1 participant