Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release version to describe command #636

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/mix/lib/releases/runtime/control.ex
@@ -1,7 +1,7 @@
defmodule Mix.Releases.Runtime.Control do
@moduledoc """
This module defines the tooling for interacting with nodes, as well
as other utiltiy functions of use.
as other utility functions of use.
"""
use Artificery

Expand Down Expand Up @@ -134,6 +134,7 @@ defmodule Mix.Releases.Runtime.Control do

command :describe, "Describes the currently installed release" do
option(:name)
option(:version, :string, "The version of the release")
option(:cookie)
option(:release, :string, "The name of the release")
option(:release_root_dir, :string, "The root directory for all releases")
Expand Down Expand Up @@ -220,6 +221,7 @@ defmodule Mix.Releases.Runtime.Control do

Console.info("Release Info ==========================")
Console.info("Name: #{opts.name}")
Console.info("Version: #{opts.version}")
Console.info("Cookie: #{opts.cookie}")
Console.info("Working Directory: #{opts.release_root_dir}")
Console.info("System Config: #{opts.sysconfig}")
Expand Down