Skip to content

Commit

Permalink
Add release version to describe command (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
qgadrian authored and bitwalker committed May 16, 2019
1 parent 16d3850 commit e2ff64b
Showing 1 changed file with 3 additions and 1 deletion.
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 @@ -149,6 +149,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(:id)
option(:release, :string, "The name of the release")
Expand Down Expand Up @@ -244,6 +245,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

0 comments on commit e2ff64b

Please sign in to comment.