JSONSchema: register new standard option 'pve-output-format'

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2018-07-02 13:34:16 +02:00 committed by Thomas Lamprecht
parent c5adc5f9ef
commit ac15655f45

View File

@ -105,6 +105,14 @@ register_standard_option('fingerprint-sha256', {
pattern => '([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}',
});
register_standard_option('pve-output-format', {
type => 'string',
description => 'Output format.',
enum => [ 'text', 'plain', 'json' ],
optional => 1,
default => 'text',
});
my $format_list = {};
sub register_format {