Commit a42861a Revert "Revert "[cli] deprecate mock-config command""

2 files Authored and Committed by clime 8 days ago
Revert "Revert "[cli] deprecate mock-config command""

This reverts commit a34edf46c6af839a5bb09836cafe89444a87637b.

    
 1 @@ -387,6 +387,7 @@
 2           :param args: argparse arguments provided by the user
 3   
 4           """
 5 +         sys.stderr.write("# This command is deprecated and will be removed in a future release.\n")
 6           username = self.client.username
 7           project = args.project.split("/")
 8           if len(project) != 2:
 9 @@ -708,7 +709,7 @@
10   
11       parser_mock_config = subparsers.add_parser(
12           "mock-config",
13 -         help="Get the mock profile (similar to koji mock-config)"
14 +         help="Deprecated. Get the mock profile (similar to koji mock-config)"
15       )
16       parser_mock_config.add_argument(
17           "project",
1 @@ -85,7 +85,7 @@
2   Build package from its source definition
3   
4   mock-config::
5 - Get the mock profile (similar to koji mock-config)
6 + DEPRECATED. Get the mock profile (similar to koji mock-config)
7   
8   build-module::
9   Build module via Copr MB