Expublish.Semver (expublish v2.3.4) View Source
Functions for manipulating %Version{} and updating project mix.exs.
Link to this section Summary
Functions
Bump major version.
Bump minor version.
Bump patch version.
Return parsed %Version{} from current mix project.
Write given %Version{} to project mix.exs.
Update version in project mix.exs by given level.
Link to this section Functions
Specs
Bump major version.
Specs
Bump minor version.
Specs
Bump patch version.
Specs
get_version!() :: Version.t()
Return parsed %Version{} from current mix project.
Specs
set_version!(Version.t(), Expublish.Options.t()) :: Version.t()
Write given %Version{} to project mix.exs.
Specs
update_version!(:major | :minor | :patch, Expublish.Options.t()) :: Version.t()
Update version in project mix.exs by given level.
Reads the current version from mix.exs, increases it by given level
and writes it back to mix.exs. Level must be one of: "major", "minor", "patch"