[copr] master: [cli] updated man page (16e1191)
by vgologuz@fedoraproject.org
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 16e1191244a30bebb9fdf2f5db03a639768fd8f2
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Mon Jan 5 18:37:22 2015 +0100
[cli] updated man page
>---------------------------------------------------------------
cli/copr_cli/main.py | 22 +++++++++---------
cli/man/copr-cli.1.asciidoc | 49 +++++++++++++++++++++++++++++++++++++++++-
2 files changed, 58 insertions(+), 13 deletions(-)
diff --git a/cli/copr_cli/main.py b/cli/copr_cli/main.py
index 6538342..4483e2b 100644
--- a/cli/copr_cli/main.py
+++ b/cli/copr_cli/main.py
@@ -354,32 +354,32 @@ def setup_parser():
parser_build.set_defaults(func="action_build")
# create the parser for the "status" command
- parser_build = subparsers.add_parser("status",
+ parser_status = subparsers.add_parser("status",
help="Get build status of build"
" specified by its ID")
- parser_build.add_argument("build_id",
+ parser_status.add_argument("build_id",
help="Build ID")
- parser_build.set_defaults(func="action_status")
+ parser_status.set_defaults(func="action_status")
# create the parser for the "download-build" command
- parser_build = subparsers.add_parser("download-build", help="Fetches built packages")
- parser_build.add_argument("build_id",
+ parser_download_build = subparsers.add_parser("download-build", help="Fetches built packages")
+ parser_download_build.add_argument("build_id",
help="Build ID")
- parser_build.add_argument(
+ parser_download_build.add_argument(
"-r", "--chroot", dest="chroots", action="append",
help="Select chroots to fetch"
)
- parser_build.add_argument("--dest", "-d", dest="dest",
+ parser_download_build.add_argument("--dest", "-d", dest="dest",
help="Base directory to store packages", default=".")
- parser_build.set_defaults(func="action_download_build")
+ parser_download_build.set_defaults(func="action_download_build")
# create the parser for the "cancel" command
- parser_build = subparsers.add_parser("cancel",
+ parser_cancel = subparsers.add_parser("cancel",
help="Cancel build specified by its ID")
- parser_build.add_argument("build_id",
+ parser_cancel.add_argument("build_id",
help="Build ID")
- parser_build.set_defaults(func="action_cancel")
+ parser_cancel.set_defaults(func="action_cancel")
return parser
diff --git a/cli/man/copr-cli.1.asciidoc b/cli/man/copr-cli.1.asciidoc
index c0419bd..a83c01d 100644
--- a/cli/man/copr-cli.1.asciidoc
+++ b/cli/man/copr-cli.1.asciidoc
@@ -53,6 +53,9 @@ Cancel a build of given id.
download-build::
Download a build to local directory.
+modify::
+Modify existing copr
+
`copr-cli create [options]`
~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -82,10 +85,10 @@ Instructions for the project.
`copr-cli build [options]`
~~~~~~~~~~~~~~~~~~~~~~~~~~
-usage: copr-cli build [-h] [-r CHROOTS] [--memory MEMORY] [--timeout TIMEOUT] [--nowait]
+usage: copr-cli build [-h] [-r, --chroot CHROOTS] [--memory MEMORY] [--timeout TIMEOUT] [--nowait]
project pkg_url [pkg_url ...]
--r --chroot::
+-r, --chroot::
If you don't need this build for all the project's chroots. You can use it several times for each chroot you need.
--memory::
@@ -107,6 +110,48 @@ pkg_url::
URL of the package to build. The package must be placed on a public web or
ftp server.
+
+`copr-cli download-build [options]`
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+usage: copr-cli download-build [-h] [-d, --dest DESTINATION]
+ [-r, --chroot CHROOT]
+ build_id
+
+build_id::
+Download built packages for build identified by build_id.
+
+-d, --dest::
+Base directory to fetch files. Using `pwd` by default
+
+-r, --chroot::
+Fetch only selected chroots. Can be specified multiple times.\
+
+
+`copr-cli modify [options]`
+~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+usage: copr-cli modify [-h] [--repo REPOS]
+ [--description DESCRIPTION]
+ [--instructions INSTRUCTIONS]
+ [--disable_createrepo DISABLE_CREATEREPO]
+ name
+
+Alters only specified project property.
+
+--repo::
+Repository to add to this project. Can be specified multiple times.
+
+--description::
+Description of the project.
+
+--instructions::
+Instructions for the project.
+
+--disable_createrepo::
+Disables automatic repository metadata generation. Accepted values for DISABLE_CREATEREPO: true/false.
+
+
EXIT STATUS
-----------
Normally, the exit code is 0 when everything goes well. But if not, we could get: