diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-09-05 13:18:28 +0200 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2020-09-05 13:18:28 +0200 |
commit | 9dca5be8b182773a7b7eb23b47296d403540ead4 (patch) | |
tree | dbcd27be5fbdf3ab704a8f9410624e7085234340 /doc | |
parent | 561ee11c37a96ae043c19fcf056576d9892b36a5 (diff) | |
download | nitrocli-9dca5be8b182773a7b7eb23b47296d403540ead4.tar.gz nitrocli-9dca5be8b182773a7b7eb23b47296d403540ead4.tar.bz2 |
Use dedicated types for output
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nitrocli.1 | 6 | ||||
-rw-r--r-- | doc/nitrocli.1.pdf | bin | 40791 -> 41073 bytes |
2 files changed, 0 insertions, 6 deletions
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. diff --git a/doc/nitrocli.1.pdf b/doc/nitrocli.1.pdf Binary files differindex 0646c84..f0d245b 100644 --- a/doc/nitrocli.1.pdf +++ b/doc/nitrocli.1.pdf |