(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-package-versionprocedureRead the version string from a package.sgl file Returns the version string or #f if not found
find-version-in-linesprocedureFind the version string in lines
extract-version-from-lineprocedureExtract version string from a line like: version: "1.2.3"
update-package-versionprocedureUpdate the version in a package.sgl file Returns #t on success, #f on failure
update-version-in-linesprocedureUpdate version in lines, returning new lines or #f if not found
count-leading-spacesprocedureCount leading spaces in a string
find-package-sglprocedureFind the package.sgl file for a package by name Searches in packages/ directory relative to workspace root
find-package-sgl-by-nameprocedureSearch for a package by reading each package.sgl
package-has-name?procedureCheck if a package.sgl file has the given package name