mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-10-04 21:16:32 +00:00
output-format.adoc: documentation for output format options
This commit is contained in:
parent
676bbd4a5f
commit
508a8bd7f8
13
gen-output-format-opts.pl
Executable file
13
gen-output-format-opts.pl
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/perl
|
||||||
|
|
||||||
|
use lib '.';
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
use PVE::JSONSchema;
|
||||||
|
use PVE::RESTHandler;
|
||||||
|
|
||||||
|
my $prop = $PVE::RESTHandler::standard_output_options;
|
||||||
|
|
||||||
|
my $data = PVE::RESTHandler::dump_properties($prop, 'asciidoc', 'config');
|
||||||
|
|
||||||
|
print $data;
|
20
output-format-opts.adoc
Normal file
20
output-format-opts.adoc
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
`human-readable`: `<boolean>` ('default =' `1`)::
|
||||||
|
|
||||||
|
Call output rendering functions to produce human readable text.
|
||||||
|
|
||||||
|
`noborder`: `<boolean>` ('default =' `1`)::
|
||||||
|
|
||||||
|
Do not draw borders (for 'text' format).
|
||||||
|
|
||||||
|
`noheader`: `<boolean>` ('default =' `1`)::
|
||||||
|
|
||||||
|
Do not show column headers (for 'text' format).
|
||||||
|
|
||||||
|
`output-format`: `<json | json-pretty | text | yaml>` ('default =' `text`)::
|
||||||
|
|
||||||
|
Output format.
|
||||||
|
|
||||||
|
`quiet`: `<boolean>` ::
|
||||||
|
|
||||||
|
Suppress printing results.
|
||||||
|
|
23
output-format.adoc
Normal file
23
output-format.adoc
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
ifndef::manvolnum[]
|
||||||
|
Output format otions `[FORMAT_OPTIONS]`
|
||||||
|
---------------------------------------
|
||||||
|
endif::manvolnum[]
|
||||||
|
ifdef::manvolnum[]
|
||||||
|
FORMAT_OPTIONS
|
||||||
|
--------------
|
||||||
|
endif::manvolnum[]
|
||||||
|
|
||||||
|
It is possible to specify the output format using the
|
||||||
|
`--outout-format` parameter. The default format 'text' uses ASCII-art
|
||||||
|
to draw nice borders around tables. It additionally transforms some
|
||||||
|
values into human-readable text, for example:
|
||||||
|
|
||||||
|
- Unix epoch is displayed as ISO 8601 date string.
|
||||||
|
- Durations are displayed as week/day/hour/miniute/secound count, i.e `1d 5h`.
|
||||||
|
- Byte sizes value include units (`B`, `KiB`, `MiB`, `GiB`, `TiB`, `PiB`).
|
||||||
|
- Fractions are display as percentage, i.e. 1.0 is displayed as 100%.
|
||||||
|
|
||||||
|
You can also completely suppress output using option `--quiet`.
|
||||||
|
|
||||||
|
|
||||||
|
include::output-format-opts.adoc[]
|
Loading…
Reference in New Issue
Block a user