Skip to content

Commit ab2428a

Browse files
committed
Improve commenting
1 parent e1c1ee6 commit ab2428a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

extractors/cds/tools/index-files.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -eu
44

5+
echo "Indexing CDS files"
6+
57
# Check if the list of files is empty
68
response_file="$1"
79

@@ -21,6 +23,8 @@ fi
2123
# in the appropriate directories
2224
if ! command -v cds &> /dev/null
2325
then
26+
echo "Pre-installing cds compiler"
27+
2428
# Find all the directories containing a package.json with a dependency on @sap/cds, where
2529
# the directory contains at least one of the files listed in the response file (e.g. the
2630
# cds files we want to extract).
@@ -44,9 +48,10 @@ fi
4448

4549
echo "Processing CDS files to JSON"
4650

47-
# Run the cds compile command on each file in the response file, outputting the JSON to a file with the same name
51+
# Run the cds compile command on each file in the response file, outputting the compiled JSON to a file with
52+
# the same name
4853
while IFS= read -r cds_file; do
49-
$cds_command --version
54+
echo "Processing CDS file $cds_file to:"
5055
$cds_command compile "$cds_file" \
5156
-2 json \
5257
-o "$cds_file.json" \

0 commit comments

Comments
 (0)