rename update to propose-update; CLI cleanup
@@ -14,29 +14,17 @@ from packit.transformator import Transformator
logger = logging.getLogger(__file__)
-@click.command("update", context_settings=get_context_settings())
-@click.option("--no-new-sources", is_flag=True)
-@click.option("--upstream-ref")
+@click.command("propose-update", context_settings=get_context_settings())
@click.option("--dist-git-branch",
help="Target branch in dist-git to release into.",
default="master"
)
@click.option("--dist-git-path",
help="Path to dist-git repo to work in.")
-@click.argument("version", required=False)
-@click.argument("repo", required=False)
@pass_config
-def update(config, dist_git_path, dist_git_branch, no_new_sources, upstream_ref, repo, version):
+def update(config, dist_git_path, dist_git_branch):
"""
Release current upstream release into Fedora
-
- :param config:
- :param dest_dir:
- :param no_new_sources:
- :param upstream_ref:
- :param repo:
- :param version:
- :return:
"""
api = PackitAPI(config)
api.update(dist_git_branch, dist_git_path=dist_git_path)
