sigildocs

(sigil changes package-update)

(sigil changes package-update) - Update versions in package.sgl files

Provides line-based updating of version fields in package.sgl files while preserving formatting and comments.

Exports

Read the version string from a package.sgl file Returns the version string or #f if not found

Find the version string in lines

Extract version string from a line like: version: "1.2.3"

Update the version in a package.sgl file Returns #t on success, #f on failure

Update version in lines, returning new lines or #f if not found

Count leading spaces in a string

Find the package.sgl file for a package by name Searches in packages/ directory relative to workspace root

Search for a package by reading each package.sgl

Check if a package.sgl file has the given package name