Packages
version_tasks
0.10.29
0.12.0
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.29
0.10.28
0.10.27
0.10.26
0.10.25
0.10.24
0.10.23
0.10.22
0.10.21
0.10.20
0.10.19
0.10.18
0.10.17
0.10.16
0.10.15
0.10.14
0.10.13
0.10.12
0.10.11
0.10.10
0.10.9
0.10.8
0.10.7
0.10.6
0.10.5
0.10.4
0.10.3
0.10.1
0.10.0
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.3
0.8.1
0.7.0
0.6.0
0.5.0
0.4.0
0.3.3
0.3.1
0.2.6
A suite of mix tasks for managing your libs version numbers with git and hex
Current section
Files
Jump to
Current section
Files
lib/mix/tasks/version.ex
defmodule Mix.Tasks.Version do
use Mix.Task
alias VersionTasks.Shell
@shortdoc "Learn more about the available version tasks"
def run(_) do
Shell.info "version_tasks v" <> VersionTasks.version
Shell.info "version_tasks is a set of helper mix tasks to manange your projects version"
Shell.newline
Shell.info "Available version tasks:"
Shell.newline
# Run `mix help --search version.`, and
# Run `mix help --search githooks.` to get this output
# and paste here
Shell.info "mix version.bin.db # Create 'bin/db' helper scripts for managing database backups"
Shell.info "mix version.bin.ff # Add a FeatureFlags (FF) GenServer with release helper scripts to enable/disable them"
Shell.info "mix version.bin.release # Initialize and create some 'bin' helper scripts for managing releases"
Shell.info "mix version.current # Calculate the current version"
Shell.info "mix version.inc # Inc to the next (major|minor|patch) version of your project"
Shell.info "mix version.is_release # Return the name (major|minor|patch) of the version if this is a release, nothing otherwise"
Shell.info "mix version.last_commit # Calculate the last git commit message"
Shell.info "mix version.name # Return the name (major|minor|patch) of this version"
Shell.info "mix version.next # The next version (e.g v0.9.2)"
Shell.info "mix version.tag # Git tag your project (e.g. v1.2.3)"
Shell.info "mix version.untag # Remove the git tag from your repo (e.g. v1.2.3)"
Shell.info "mix version.up # Inc to next version, and commit changes to git"
Shell.info "mix githooks.hexup # Install a githook to run mix hex.publish on a new release"
Shell.info "mix githooks.deploy # Install a githook to run ./bin/deploy on a new release"
Shell.newline
Shell.info "Further information can be found here:"
Shell.info " -- https://hex.pm/packages/version_tasks"
Shell.info " -- https://github.com/aforward/version_tasks"
Shell.newline
end
end