]> git.proxmox.com Git - pve-common.git/commitdiff
add print_width property to JSONSchema definition
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 18 Jun 2018 08:18:00 +0000 (10:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 Jun 2018 09:24:03 +0000 (11:24 +0200)
used to define the maximal width of the respective column in the CLI

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PVE/JSONSchema.pm

index f014dc3f15b5c73dbadb05f865d435f70e749916..2865d1a9ac9f89a1f53bb610e99f94141c37ce2a 100644 (file)
@@ -1139,6 +1139,11 @@ my $default_schema_noref = {
                },
            },
        },
                },
            },
        },
+       print_width => {
+           type => "integer",
+           description => "For CLI context, this defines the maximal width to print before truncating",
+           optional => 1,
+       },
     }  
 };
 
     }  
 };