Documentation
¶
Overview ¶
bump-version reads a file and looks for this pattern: const VERSION = "a.b.c" (on a line by itself) where "a", "b", and "c" are numbers. (The file can use single or double quotes.)
It then increments either the major (a), minor (b), or patch (c) numbers based on the supplied argument. It rewrites the file with the new version, commits the change with "git commit" (with -commit) and tags it with "git tag" (with -tag).
Usage:
go run cmd/bump-version/main.go [-n] patch src/main.js
The `-n` flag parses the file but makes no changes or git actions.
Click to show internal directories.
Click to hide internal directories.