rlsbl v0.40.1 /rlsbl.targets
On this page

Release target registry and detection: maps ecosystem ids (npm, pypi, go, cargo, deno, zig, swift, hex, docker, maven, plain) to classes.

#rlsbl.targets

#rlsbl.targets

Release target discovery and registry that maps ecosystem identifiers (npm, pypi, go, cargo, deno, zig, swift, hex, docker, maven, plain) to their corresponding target classes for version bumps and scaffolding.

#TargetEntry

A detected target with its directory path.

#_parse_target_entry

python
def _parse_target_entry(entry, base_dir)

Parse a target config entry (string or dict) into a TargetEntry.

#detect_targets

python
def detect_targets(dir_path='.')

Detect which targets are applicable in the given directory.

If .rlsbl/config.json has a "targets" array, use that (opt-in config). Each entry can be a plain string (defaults to dir_path) or a dict with "name" and optional "path" (subdirectory relative to dir_path).

Otherwise, fall back to auto-detection based on project file presence.

Returns list of TargetEntry(name, path) tuples.