Skip to content

Commit ec65d53

Browse files
Enhance script output with color coding and update script paths in team_config_and_data.sh
1 parent 8cb037f commit ec65d53

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

azure.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,18 @@ hooks:
2323
interactive: true
2424
posix:
2525
run: |
26+
Blue='\033[0;34m'
27+
NC='\033[0m'
2628
echo "To upload Team Configurations to Cosmos. Run the following command in Bash:"
27-
echo "bash infra/scripts/upload_team_config.sh"
29+
echo "${Blue}bash infra/scripts/upload_team_config.sh"
2830
echo ""
29-
echo "To index Sample Data into Azure Search. Run the following command in Bash:"
30-
echo "bash infra/scripts/process_sample_data.sh"
31+
echo "${NC}To index Sample Data into Azure Search. Run the following command in Bash:"
32+
echo "${Blue}bash infra/scripts/process_sample_data.sh"
3133
echo ""
32-
echo "To upload team configurations and index sample data both in one command, you can use the following command in Bash:"
33-
echo "bash infra/scripts/team_config_and_data.sh"
34+
echo "${NC}To upload team configurations and index sample data both in one command, you can use the following command in Bash:"
35+
echo "${Blue}bash infra/scripts/team_config_and_data.sh"
3436
echo ""
35-
echo "You can access the deployed Frontend application at the following URL:"
36-
echo "https://$webSiteDefaultHostname"
37+
echo "${NC}You can access the deployed Frontend application at the following URL:"
38+
echo "${Blue}https://$webSiteDefaultHostname"
3739
shell: sh
3840
interactive: true

azure_custom.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,18 @@ hooks:
5959
interactive: true
6060
posix:
6161
run: |
62+
Blue='\033[0;34m'
63+
NC='\033[0m'
6264
echo "To upload Team Configurations to Cosmos. Run the following command in Bash:"
63-
echo "bash infra/scripts/upload_team_config.sh"
65+
echo "${Blue}bash infra/scripts/upload_team_config.sh"
6466
echo ""
65-
echo "To index Sample Data into Azure Search. Run the following command in Bash:"
66-
echo "bash infra/scripts/process_sample_data.sh"
67+
echo "${NC}To index Sample Data into Azure Search. Run the following command in Bash:"
68+
echo "${Blue}bash infra/scripts/process_sample_data.sh"
6769
echo ""
68-
echo "If you want to run both scripts as single command, you can use the following command in Bash:"
69-
echo "bash infra/scripts/team_config_and_data.sh"
70+
echo "${NC}If you want to run both scripts as single command, you can use the following command in Bash:"
71+
echo "${Blue}bash infra/scripts/team_config_and_data.sh"
7072
echo ""
71-
echo "You can access the deployed Frontend application at the following URL:"
72-
echo "https://$webSiteDefaultHostname"
73+
echo "${NC}You can access the deployed Frontend application at the following URL:"
74+
echo "${Blue}https://$webSiteDefaultHostname"
7375
shell: sh
7476
interactive: true

infra/scripts/team_config_and_data.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ isTeamConfigFailed=false
4949
isSampleDataFailed=false
5050

5151
echo "Uploading team configuration..."
52-
bash upload_team_config.sh "$backendUrl" "$directoryPath"
52+
bash infra/scripts/upload_team_config.sh "$backendUrl" "$directoryPath"
5353
if [ $? -ne 0 ]; then
5454
echo "Error: Team configuration upload failed."
5555
isTeamConfigFailed=true
@@ -61,7 +61,7 @@ echo "----------------------------------------"
6161
echo ""
6262

6363
echo "Processing sample data..."
64-
bash process_sample_data.sh "$storageAccount" "$blobContainer" "$aiSearch" "$aiSearchIndex" "$resourceGroup"
64+
bash infra/scripts/process_sample_data.sh "$storageAccount" "$blobContainer" "$aiSearch" "$aiSearchIndex" "$resourceGroup"
6565
if [ $? -ne 0 ]; then
6666
echo "Error: Sample data processing failed."
6767
isSampleDataFailed=true

0 commit comments

Comments
 (0)