From a42861a1150e3467d4347f0f67128b994cad1def Mon Sep 17 00:00:00 2001 From: clime Date: Jun 12 2018 14:26:08 +0000 Subject: Revert "Revert "[cli] deprecate mock-config command"" This reverts commit a34edf46c6af839a5bb09836cafe89444a87637b. --- diff --git a/cli/copr_cli/main.py b/cli/copr_cli/main.py index 38e4d69..89bf6a4 100644 --- a/cli/copr_cli/main.py +++ b/cli/copr_cli/main.py @@ -387,6 +387,7 @@ class Commands(object): :param args: argparse arguments provided by the user """ + sys.stderr.write("# This command is deprecated and will be removed in a future release.\n") username = self.client.username project = args.project.split("/") if len(project) != 2: @@ -708,7 +709,7 @@ def setup_parser(): parser_mock_config = subparsers.add_parser( "mock-config", - help="Get the mock profile (similar to koji mock-config)" + help="Deprecated. Get the mock profile (similar to koji mock-config)" ) parser_mock_config.add_argument( "project", diff --git a/cli/man/copr-cli.1.asciidoc b/cli/man/copr-cli.1.asciidoc index a21b975..8a55dde 100644 --- a/cli/man/copr-cli.1.asciidoc +++ b/cli/man/copr-cli.1.asciidoc @@ -85,7 +85,7 @@ build-package:: Build package from its source definition mock-config:: -Get the mock profile (similar to koji mock-config) +DEPRECATED. Get the mock profile (similar to koji mock-config) build-module:: Build module via Copr MB