mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-07 21:18:35 +00:00
JSONSchema: register new standard option 'pve-output-format'
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
c5adc5f9ef
commit
ac15655f45
@ -105,6 +105,14 @@ register_standard_option('fingerprint-sha256', {
|
|||||||
pattern => '([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}',
|
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 = {};
|
my $format_list = {};
|
||||||
|
|
||||||
sub register_format {
|
sub register_format {
|
||||||
|
Loading…
Reference in New Issue
Block a user