Skip to main content

Module config

Module config 

Source
Expand description

Repository configuration (.cadvm/config.json) and author resolution.

Config is a flat key = value store serialized as a JSON object. The only keys cadvm interprets today are USER_NAME and USER_EMAIL, used to stamp commits, but arbitrary keys may be stored.

Structs§

Config
A flat string key/value configuration store.

Constants§

ENV_AUTHOR_EMAIL
Environment variable that overrides the author email.
ENV_AUTHOR_NAME
Environment variable that overrides the author name.
USER_EMAIL
Config key for the author email.
USER_NAME
Config key for the author name.

Functions§

resolve_author
Resolve the commit author: environment overrides config, which overrides a neutral fallback. Never fails — a snapshot must always be possible.