From 7ea82c5013ab3c3d44b4b85cf767559e7019854f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 12 Jul 2016 17:25:28 +0300 Subject: Add --cert-* rep-info command options --- bpkg/rep-info.cli | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) (limited to 'bpkg/rep-info.cli') diff --git a/bpkg/rep-info.cli b/bpkg/rep-info.cli index 5fa5d3d..faa6456 100644 --- a/bpkg/rep-info.cli +++ b/bpkg/rep-info.cli @@ -21,10 +21,14 @@ namespace bpkg The \cb{rep-info} command prints various information about the specified repository. By default it print the repository's name and location as the - first line followed by the list of complement and prerequisite - repositories and the list of available packages. This default behavior, - however, can be altered in various ways using options listed below. Note - that the information is written to \cb{STDOUT}, not \cb{STDERR}. + first line. If the repository is signed, the certificate information + (name/organization/email) is printed as the next line following by the + certificate fingerprint. Then comes the list of complement and + prerequisite repositories followed by the list of available packages. + + This default format can be altered in various ways using options listed + below. Note also that the information is written to \cb{STDOUT}, not + \cb{STDERR}. If the current working directory contains a \cb{bpkg} configuration, then \cb{rep-info} will use its certificate database for the repository @@ -42,7 +46,31 @@ namespace bpkg bool --name|-n { - "Print the specified repository's name and location." + "Print the repository's name and location." + } + + bool --cert-fingerprint + { + "Print the repository's certificate fingerprint or empty line if the + repository is unsigned." + } + + bool --cert-name + { + "Print the repository's certificate common name (CN) or empty line if + the repository is unsigned." + } + + bool --cert-organization + { + "Print the repository's certificate organization name (O) or empty line + if the repository is unsigned." + } + + bool --cert-email + { + "Print the repository's certificate email or empty line if the + repository is unsigned." } bool --repositories|-r -- cgit v1.1