From 9c657e9779b8cd6900ef33d307e114be6f54fe59 Mon Sep 17 00:00:00 2001 From: Marco Vermeulen Date: Wed, 18 Dec 2024 22:08:54 +0000 Subject: [PATCH] Improve deprecation message formatting --- src/main/bash/sdkman-utils.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/bash/sdkman-utils.sh b/src/main/bash/sdkman-utils.sh index e6b2247b4..854efd0b1 100644 --- a/src/main/bash/sdkman-utils.sh +++ b/src/main/bash/sdkman-utils.sh @@ -112,11 +112,13 @@ function __sdkman_echo_confirm() { } function __sdkman_deprecation_notice() { - local message="[Deprecation Notice]: + local message=" +[Deprecation Notice]: + This legacy '$1' command is replaced by a native implementation and it will be removed in a future release. -Learn more at https://sdkman.io/native -" + +Learn more at https://sdkman.io/native" if [[ "$sdkman_colour_enable" == 'false' ]]; then __sdkman_echo_no_colour "$message"