From 9dca5be8b182773a7b7eb23b47296d403540ead4 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sat, 5 Sep 2020 13:18:28 +0200 Subject: Use dedicated types for output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, we just printed nitrocli’s output to the stdout stream using format macros. To make it possible to support multiple output formats, this patch introduces the output module with dedicated types for the data that is printed to stdout: - Value: A single value, e. g. an OTP code or the configuration data. - Table: A list of objects, rendered as a table, e. g. the list of OTP slots. With this patch, we also drop the --quiet option for the pws get command. It was intended to make it easier to parse the output of the command. But as we will add better output formats for parsing, we no longer need this option. TODO: update changelog --- doc/nitrocli.1 | 6 ------ 1 file changed, 6 deletions(-) (limited to 'doc/nitrocli.1') diff --git a/doc/nitrocli.1 b/doc/nitrocli.1 index 74cc2d9..1fdeb04 100644 --- a/doc/nitrocli.1 +++ b/doc/nitrocli.1 @@ -217,18 +217,12 @@ You can use the \fBlock\fR command to lock the password safe. \fBnitrocli pws get \fIslot \fR[\fB\-n\fR|\fB\-\-name\fR] \ [\fB\-l\fR|\fB\-\-login\fR] \ [\fB\-p\fR|\fB\-\-password\fR] \ -[\fB\-q\fR|\fB\-\-quiet\fR] Print the content of one PWS slot. \fIslot\fR is the number of the slot. Per default, this command prints the name, the login and the password (in that order). If one or more of the options \fB\-\-name\fR, \fB\-\-login\fR, and \fB\-\-password\fR are set, only the selected fields are printed. -The order of the fields never changes. - -The fields are printed together with a label. -Use the \fB\-\-quiet\fR option to suppress the labels and to only output the -values stored in the PWS slot. .TP \fBnitrocli pws set \fIslot name login password\fR Set the content of a PWS slot. -- cgit v1.2.1