Skip to content

Commit

Permalink
chore: improve description and add app-version for readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ldming committed Nov 13, 2023
1 parent 17df925 commit 9dc47a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hack/gen-addons.sh → hack/get-addons.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
#!/bin/bash

# Initialize table header
echo "| NAME | DESCRIPTION |"
echo "| ---- | ----------- |"
echo "| NAME | APP-VERSION | DESCRIPTION |"
echo "| ---- | --------- | ----------- |"

# Traverse and sort directories
for d in $(find . -type d ! -name "*cluster" -not -name "common" -not -name "kblib" | sort); do
for d in $(find . -type d ! -name "*cluster" -not -name "common" -not -name "kblib" -not -name "neonvm" | sort); do
# Check if Chart.yaml file exists
if [[ -f "$d/Chart.yaml" ]]; then
# Use yq to read fields
name=$(yq e '.name' $d/Chart.yaml)
description=$(yq e '.description' $d/Chart.yaml)
appVersion=$(yq e '.appVersion' $d/Chart.yaml)

# Output as Markdown table row
echo "| $name | $description |"
echo "| $name | $appVersion | $description"
fi
done

0 comments on commit 9dc47a1

Please sign in to comment.