Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Add tags to meta.yaml #4

Merged
merged 1 commit into from
May 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions devfiles/apache-camel-springboot-che7/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
displayName: Apache Camel based projects on Che 7
description: Stack with environment ready to develop Integration projects with Apache Camel based on SpringBoot.
tags: ["Java", "OpenJDK", "Maven", "Debian", "Apache Camel", "Red Hat Fuse"]
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
1 change: 1 addition & 0 deletions devfiles/dotnet/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
displayName: ".NET Core with Theia IDE"
description: Default stack with .Net 2.2.105 and Theia IDE
tags: ["Theia", "Debian", "Dotnet", "C#"]
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
1 change: 1 addition & 0 deletions devfiles/go/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
displayName: Go with Theia IDE
description: Default stack with Go 1.12.4 and Theia IDE
tags: ["Theia", "Debian", "Go"]
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
1 change: 1 addition & 0 deletions devfiles/java-gradle/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
displayName: Java Gradle
description: Java Stack with OpenJDK 11 and Gradle 5.2.1
tags: ["Java", "OpenJDK", "Gradle", "Spring Boot v2", "Debian"]
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
1 change: 1 addition & 0 deletions devfiles/java-maven/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
displayName: Java Maven
description: Default Java Stack with OpenJDK 11 and Maven 3.6
tags: ["Java", "OpenJDK", "Maven", "Spring Boot v2", "Vert.x", "Debian"]
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
1 change: 1 addition & 0 deletions devfiles/python/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
displayName: Python with Theia IDE
description: Default stack with Python 3.7 and Theia IDE
tags: ["Theia", "Debian", "Python", "pip"]
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
9 changes: 6 additions & 3 deletions index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set -e
# Arguments:
# 1 - folder to search files in
function buildIndex() {
metaInfoFields=('displayName' 'description' 'icon')
metaInfoFields=('displayName' 'description' 'tags' 'icon')

## search for all devfiles
readarray -d '' arr < <(find "$1" -name 'meta.yaml' -print0)
Expand All @@ -33,8 +33,11 @@ function buildIndex() {

for field in "${metaInfoFields[@]}"
do
value="$(yq r "$i" "$field" | sed 's/^"\(.*\)"$/\1/')"
echo " \"$field\":\"$value\","
# get value of needed field in json format
# note that it may have differrent formats: arrays, string, etc.
# String value contains quotes, e.g. "str"
value="$(yq r -j "$i" "$field")"
echo " \"$field\":$value,"
done

parentFolderPath=${i%/*}
Expand Down