Read the shared ~/.config/inbuxa profile for import targets #78

Merged
jcoffey-dev merged 1 commits from feat/shared-profile into main 2026-11-13 05:44:09 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev b6f76e8eb0 profile: import and import-directory read the shared ~/.config/inbuxa file
ci / test (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 4m31s
ci / announce (pull_request) Skipped
inbuxa-cli gained the shared profile; this is the inbuxa-migrate side, the
same config.toml format. import (into a JMAP server) and import-directory
both write to an inbuxa server, so they now take its url and API key from a
[profile.<name>] section when --url or an INBUXA_MIGRATE_* variable doesn't
give them. --url is optional on these two when a profile supplies it; a flag
or variable still wins, so nothing changes for anyone passing them. The
other commands connect to IMAP, DAV and the like, not the inbuxa server, so
they are untouched and still require --url.

resolve_auth takes an optional profile key and no longer insists on an auth
flag (the key can come from the profile or the environment); a new
secret::resolve_any_or threads the profile key in after the environment and
before the prompt.
2026-11-12 22:38:55 -07:00