API Reference mix_version v2.3.1
View SourceModules
Implementation of the CLI with CliMate
.
An output shell implementation allowing your CLI commands to send their output as messages to themselves. This is most useful for tests.
Helpers to read from the Mix project the app is called in.
This module is a simple, ad-hoc interface to the Git CLI.
Behaviour for mix version stages.
Stage that creates a new Git commit with the updated mix.exs
file and all
other changes added to the Git index.
Stage that checks that the future Git tag does not already exist.
Checks if any file in the project has changes that are not committed to Git.
Stage that creates a new Git commit with the updated mix.exs
file and all
other changes added to the Git index.
Stage that checks if the git
command is callable with System.cmd/3
.
Finds the root path of the Git repository of the project, if any.
Decides on the new version number from the passed CLI options.
This stage checks for the output command and prints the version and exits if the flag is provided.
Stage that creates a possibly annotated tag at the current Git HEAD.
Stage that is responsible to write the mix.exs
file with the new version
number.
Utiliy to run System.cmd/3
with :ok/:error
tuples results.
The "token" is the state of the command line execution, passed to and returned from all stages.
Mix Tasks
This module implements a mix task whose main purpose is to update the version number of an Elixir application, with extra steps such as committing a git tag.