[pve-devel] [PATCH common v4 1/3] add print_width property to JSONSchema definition

Stoiko Ivanov s.ivanov at proxmox.com
Mon Jun 18 10:18:00 CEST 2018


used to define the maximal width of the respective column in the CLI

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 src/PVE/JSONSchema.pm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm
index f014dc3..2865d1a 100644
--- a/src/PVE/JSONSchema.pm
+++ b/src/PVE/JSONSchema.pm
@@ -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,
+	},
     }	
 };
 
-- 
2.11.0





More information about the pve-devel mailing list