From 3aa5222fefda0666c6e572dabd40f56880a2117a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 13 Aug 2026 14:41:06 -0400 Subject: [PATCH] Add packaging and some tab completion for osdeploy fetch --- confluent_client/confluent_env.sh | 10 +++++++++- confluent_server/setup.py.tmpl | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/confluent_client/confluent_env.sh b/confluent_client/confluent_env.sh index 84482cde..0e149a34 100644 --- a/confluent_client/confluent_env.sh +++ b/confluent_client/confluent_env.sh @@ -156,7 +156,7 @@ _confluent_osimage_completion() { _confluent_get_args if [ $NUMARGS == 2 ]; then - COMPREPLY=($(compgen -W "initialize import importcheck updateboot rebase" -- ${COMP_WORDS[COMP_CWORD]})) + COMPREPLY=($(compgen -W "initialize import importcheck updateboot rebase fetch" -- ${COMP_WORDS[COMP_CWORD]})) return elif [ ${CMPARGS[1]} == 'initialize' ]; then COMPREPLY=($(compgen -W "-h -a -g -u -s -k -t -p -i -l -r" -- ${COMP_WORDS[COMP_CWORD]})) @@ -164,6 +164,14 @@ _confluent_osimage_completion() compopt -o default COMPREPLY=() return + elif [ ${CMPARGS[1]} == 'fetch' ]; then + if [ $NUMARGS == 3 ]; then + COMPREPLY=($(compgen -W "alma-10-aarch64 alma-10-x86_64 debian-13-amd64 rocky-10-aarch64 rocky-10-x86_64 ubuntu-26.04-amd64 ubuntu-26.04-arm64 " -- ${COMP_WORDS[COMP_CWORD]})) + return + fi + compopt -o dirnames + COMPREPLY=() + return elif [ ${CMPARGS[1]} == 'updateboot' -o ${CMPARGS[1]} == 'rebase' ]; then COMPREPLY=($(compgen -W "-n $(confetty show /deployment/profiles|sed -e 's/\///')" -- "${COMP_WORDS[COMP_CWORD]}")) return diff --git a/confluent_server/setup.py.tmpl b/confluent_server/setup.py.tmpl index b9e36932..4a4cac86 100644 --- a/confluent_server/setup.py.tmpl +++ b/confluent_server/setup.py.tmpl @@ -11,6 +11,7 @@ setup( long_description='confluent systems management server', platforms=['Linux'], packages=['confluent', 'confluent/config', 'confluent/interface', + 'confluent/deployment/', 'confluent/discovery/', 'confluent/discovery/protocols/', 'confluent/discovery/handlers/',