diff options
author | Christian Breunig <christian@breunig.cc> | 2024-03-24 21:51:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-24 21:51:58 +0100 |
commit | 5f02e434e62d9829e11bd5bb3ed5f6737a9ed5e1 (patch) | |
tree | 5fbd08abae25b789810aa97382b89f64a2c333a0 /interface-definitions/container.xml.in | |
parent | 810ad5c718d685e0835b91eea17b5cf90b96fb5f (diff) | |
parent | a7d4ca9f242cb74088303dc76ba148fa12521a8f (diff) | |
download | vyos-1x-5f02e434e62d9829e11bd5bb3ed5f6737a9ed5e1.tar.gz vyos-1x-5f02e434e62d9829e11bd5bb3ed5f6737a9ed5e1.zip |
Merge pull request #3184 from vyos/mergify/bp/sagitta/pr-3182
container: T6062: add image name completion helper (backport #3182)
Diffstat (limited to 'interface-definitions/container.xml.in')
-rw-r--r-- | interface-definitions/container.xml.in | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in index f0db8a6f2..d48ebf966 100644 --- a/interface-definitions/container.xml.in +++ b/interface-definitions/container.xml.in @@ -128,7 +128,17 @@ </leafNode> <leafNode name="image"> <properties> - <help>Image name in the hub-registry</help> + <help>Container image to use</help> + <completionHelp> + <script>sudo podman image list --format "{{.Repository}}:{{.Tag}}"</script> + </completionHelp> + <valueHelp> + <format>txt</format> + <description>Image name in the hub-registry</description> + </valueHelp> + <constraint> + <regex>[[:ascii:]]{1,255}</regex> + </constraint> </properties> </leafNode> <leafNode name="command"> @@ -165,6 +175,9 @@ <format>txt</format> <description>Set label option value</description> </valueHelp> + <constraint> + <regex>[[:ascii:]]{1,255}</regex> + </constraint> </properties> </leafNode> </children> |