aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-list.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-22 13:45:16 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2018-02-26 17:49:52 +0300
commit12a5375f25d6a7be5a5741c728a8f9b8168761a4 (patch)
tree43e1832a9c1e709037f6005276f01ef44f2552bc /bpkg/rep-list.cli
parentf619db022734dff6b988c514e3a292a5c7babaf0 (diff)
Document new rep-list and rep-remove, update rep-add and rep-fetch
Diffstat (limited to 'bpkg/rep-list.cli')
-rw-r--r--bpkg/rep-list.cli46
1 files changed, 46 insertions, 0 deletions
diff --git a/bpkg/rep-list.cli b/bpkg/rep-list.cli
new file mode 100644
index 0000000..f25a947
--- /dev/null
+++ b/bpkg/rep-list.cli
@@ -0,0 +1,46 @@
+// file : bpkg/rep-list.cli
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+include <libbpkg/manifest.hxx>;
+
+include <bpkg/configuration.cli>;
+
+"\section=1"
+"\name=bpkg-rep-list"
+"\summary=list repositories in configuration"
+
+namespace bpkg
+{
+ {
+ "<options>",
+
+ "\h|SYNOPSIS|
+
+ \c{\b{bpkg rep-list}|\b{list} [<options>]}
+
+ \h|DESCRIPTION|
+
+ The \cb{rep-list} command lists the repositories in the configuration.
+
+ For each repository a line containing the repository name and location is
+ printed to \cb{STDOUT}. If the \cb{--complements|-c} and/or
+ \cb{--prerequisites|-p} options are specified, then it is followed by
+ the list of complement and/or prerequisite repositories, recursively."
+ }
+
+ class rep_list_options: configuration_options
+ {
+ "\h|REP-LIST OPTIONS|"
+
+ bool --complements|-c
+ {
+ "List complement repositories."
+ }
+
+ bool --prerequisites|-p
+ {
+ "List prerequisite repositories."
+ }
+ };
+}