rlsbl.config

Config reading for the tag feature (ecosystem discoverability).

Precedence (highest to lowest): 1. CLI flag (--no-tag) 2. Project-level: .rlsbl/config.json 3. User-level: ~/.rlsbl/config.json 4. Default: True (tagging enabled)

Functions

_project_config

def _project_config()

Resolve project config path at call time (respects cwd changes).

read_json_config

def read_json_config(path)

Safely read a JSON file, returning {} on missing or malformed.

should_tag

def should_tag(flags)

Returns True if tagging is enabled, checking flag > project > user > default.

write_project_config

def write_project_config(key, value)

Write or update a key in .rlsbl/config.json (creates dir if needed).