]> git.proxmox.com Git - pve-common.git/commitdiff
add new property to support bash completions
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 2 Sep 2015 11:31:17 +0000 (13:31 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 2 Sep 2015 11:31:17 +0000 (13:31 +0200)
src/PVE/JSONSchema.pm

index c925ecbad664164e4670d51e2a5002fa48d0725e..ed1813d3bb2a66b4d2f41cc33a58f05acaa020a7 100644 (file)
@@ -817,6 +817,11 @@ my $default_schema_noref = {
            optional => 1,
            description => "This indicates the default for the instance property."
        },
+        completion => {
+           type => 'coderef',
+           description => "Bash completion function. This function should return a list of possible values.",
+           optional => 1,
+        },
         disallow => {
            type => "object",
            optional => 1,