From 3644236da2aa5e9afa1da9ab3896de73da707099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20H=C3=A4hlen?= Date: Mon, 29 Jan 2024 11:33:52 +0100 Subject: [PATCH 1/2] Bugfix 3.3.1 --- CHANGELOG.md | 8 ++++++-- build-files/CHANGELOG.md | 7 +++---- dc | 2 +- dc-completion | 4 ++-- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 048ee86..22b1927 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ +# Version 3.3.1 +## Bugfix +- New commands were not showing up in tab completion + # Version 3.3.0 -## New featurs -- Introduced `clean` command to clean up temporary fils +## New features +- Introduced `clean` command to clean up temporary files - Introduced `ips` command to show assigned IP's of containers # Version 3.2.2 diff --git a/build-files/CHANGELOG.md b/build-files/CHANGELOG.md index e6847d2..2956670 100644 --- a/build-files/CHANGELOG.md +++ b/build-files/CHANGELOG.md @@ -1,4 +1,3 @@ -# Version 3.3.0 -## New featurs -- Introduced `clean` command to clean up temporary fils -- Introduced `ips` command to show assigned IP's of containers +# Version 3.3.1 +## Bugfix +- New commands were not showing up in tab completion diff --git a/dc b/dc index 221f9e7..8db401f 100755 --- a/dc +++ b/dc @@ -6,7 +6,7 @@ set -m # VERSION -export DC_VERSION=v3.3.0 +export DC_VERSION=v3.3.1 ###### VARIABLES if [[ -z "${DC_DIR}" ]]; then diff --git a/dc-completion b/dc-completion index dad487a..dbcbff7 100755 --- a/dc-completion +++ b/dc-completion @@ -2,7 +2,7 @@ # Copyright (C) 2022 - 2023 Ben Hählen # This is the completion file for `dc` ############## -# Version 3.3.0 +# Version 3.3.1 ############## _dc_completions() { @@ -69,7 +69,7 @@ _dc_completions() COMPREPLY=( $(compgen -W "${SERVICES}" -- "${CUR}") ) return 0 ;; - clean|install|ips|network|list|help|version) + install|network|list|help|version) return ;; prune) From a1e7dc94aa3c5be67cd3f9320a471bdcbda55bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20H=C3=A4hlen?= Date: Mon, 29 Jan 2024 11:37:56 +0100 Subject: [PATCH 2/2] Fixing tab completion --- dc-completion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dc-completion b/dc-completion index dbcbff7..868fb94 100755 --- a/dc-completion +++ b/dc-completion @@ -21,7 +21,7 @@ _dc_completions() export DC_CMD="docker compose" # Basic/main options that will be completed - OPTS="install up down restart-stack-hard restart-stack-soft logs-stack start stop restart pull logs network list help update version prune" + OPTS="install up down restart-stack-hard restart-stack-soft logs-stack start stop restart pull logs ips network clean list help update version prune" # Based on the arguments, we can run functions case "$cmd" in @@ -69,7 +69,7 @@ _dc_completions() COMPREPLY=( $(compgen -W "${SERVICES}" -- "${CUR}") ) return 0 ;; - install|network|list|help|version) + install|ips|network|clean|list|help|version) return ;; prune)