View Source Expublish.Project (expublish v2.7.6)

Functions for reading and writing project mix.exs.

Summary

Functions

Return parsed %Version{} from current mix project.

Writes version to project mix.exs or given --version-file.

Functions

get_version!(options \\ %Options{})

@spec get_version!(Expublish.Options.t()) :: Version.t()

Return parsed %Version{} from current mix project.

Reads from Mix.Project.config/0

update_version!(new_version, options \\ %Options{}, version \\ nil)

@spec update_version!(Version.t(), Expublish.Options.t(), nil | Version.t()) ::
  Version.t()

Writes version to project mix.exs or given --version-file.