From d3262e65f57c44837422b4412865b7850fe12872 Mon Sep 17 00:00:00 2001 From: AJ Foster <2789166+aj-foster@users.noreply.github.com> Date: Thu, 10 Feb 2022 23:46:12 -0500 Subject: [PATCH] Update documentation related to `--name` flag --- lib/mix/tasks/hex.registry.ex | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/mix/tasks/hex.registry.ex b/lib/mix/tasks/hex.registry.ex index e8cd6846..8edee908 100644 --- a/lib/mix/tasks/hex.registry.ex +++ b/lib/mix/tasks/hex.registry.ex @@ -61,13 +61,13 @@ defmodule Mix.Tasks.Hex.Registry do ## Add a package - $ mix hex.registry add PUBLIC_DIR PACKAGE1 PACKAGE2 ... + $ mix hex.registry add PUBLIC_DIR PACKAGE - To add one or more packages to an existing registry, supply the public directory of the registry - and paths to the new packages. This action also requires the private key used to generate the - original registry: + To add a package to an existing registry, supply the public directory of the registry and path to + the new packages. This action also requires the name of the registry and the private key + originally used to generate it: - $ mix hex.registry add public --private-key=private_key.pem foo-1.0.0.tar + $ mix hex.registry add public --name=acme --private-key=private_key.pem foo-1.0.0.tar * reading public/name * reading public/versions * moving foo-1.0.0.tar -> public/tarballs/foo-1.0.0.tar @@ -76,8 +76,6 @@ defmodule Mix.Tasks.Hex.Registry do * updating public/names * updating public/versions - Supplying a `--name` is optional. If given, an error will be raised if the existing registry's - name is different than the supplied value. """ @impl true def run(args) do