Skip to content

Conversation

@ADITYARAM-PARTHSARATHI
Copy link

if ! command -v helm-docs &>/dev/null; then
echo "helm-docs could not be found."
echo "You can install it from https://github.com/norwoodj/helm-docs."
exit 1
fi

Optionally check if the version of helm-docs is acceptable

REQUIRED_VERSION="v1.7.0"
INSTALLED_VERSION=$(helm-docs --version)

if [[ "$INSTALLED_VERSION" < "$REQUIRED_VERSION" ]]; then
echo "Installed helm-docs version ($INSTALLED_VERSION) is older than required version ($REQUIRED_VERSION)."
echo "Please update helm-docs to the latest version."
exit 1
else
echo "helm-docs version $INSTALLED_VERSION is installed and up-to-date."
fi

@ADITYARAM-PARTHSARATHI ADITYARAM-PARTHSARATHI requested a review from a team as a code owner February 24, 2025 10:55
@timja
Copy link
Member

timja commented Feb 24, 2025

Please take another look at this, your title, PR description and the content of the PR could all do with some improvement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants