diff options
author | Christian Breunig <christian@breunig.cc> | 2024-03-24 20:32:31 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-03-24 20:35:09 +0100 |
commit | 37a4fdf229a7ab74718655f1d6e35fd94e5ad69a (patch) | |
tree | 519fff2f92e6809dbc417ce15baa857dd153c33e /interface-definitions/container.xml.in | |
parent | afaf715194a922c92f6ff6058abc0e4b9ff570d4 (diff) | |
download | vyos-1x-37a4fdf229a7ab74718655f1d6e35fd94e5ad69a.tar.gz vyos-1x-37a4fdf229a7ab74718655f1d6e35fd94e5ad69a.zip |
container: T6062: add image name completion helper
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> |