-
Notifications
You must be signed in to change notification settings - Fork 2
module
Using the JUSTPREP_MODULE_KEYWORD system environment variable you can define a directive used to insert what I call the Fake Module Convention. I originally called it fake out of respect for Casey and his JUST product. Casey is currently working on a refactor for JUST which will incorporate it's own module system. With that as context this pattern is fake ... but currently very useful.
The pattern also holds up for TekWisely's RUN CLI task runner.
A module is a file that provides for a cohesive consistent set of tasks that can be accessed via a sub-task or sub-command.
Given that there is a module defined which encapsulates all of the functions of semantic version management, then you can do these kinds of things from the command-line:
module version ~/just_modules/version.just
The I can do things like:
jj version init
jj version current
jj version set 1.2.4
jj version bump major
jj version tag
BTW, I use the semver2 Ruby gem for semantic version management.
Check out the full files in Examples.