Skip to content

Commit 59404bb

Browse files
authored
[Build] Remove emojis from snippets (#7652)
* Remove emojis from code snippets because ZonBook validator can't handle them.
1 parent e73d687 commit 59404bb

File tree

3 files changed

+39
-47
lines changed

3 files changed

+39
-47
lines changed

steering_docs/kotlin-tech/basics.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class {Service}Scenario {
119119
try {
120120
runScenario({service}Client)
121121
} catch (e: Exception) {
122-
println("Scenario failed: ${e.message}")
122+
println("Scenario failed: ${e.message}")
123123
e.printStackTrace()
124124
} finally {
125125
cleanupPhase({service}Client)
@@ -133,7 +133,7 @@ class {Service}Scenario {
133133
demonstrationPhase({service}Client)
134134
examinationPhase({service}Client)
135135
} catch (e: Exception) {
136-
println("Error during scenario execution: ${e.message}")
136+
println("Error during scenario execution: ${e.message}")
137137
throw e
138138
}
139139
}
@@ -163,10 +163,10 @@ class {Service}Scenario {
163163
// Create new resource as specified
164164
println("Creating new resource...")
165165
resourceId = {service}Actions.createResource({service}Client)
166-
println("Resource created successfully: $resourceId")
166+
println("Resource created successfully: $resourceId")
167167

168168
} catch (e: {Service}Exception) {
169-
println("Error during setup: ${e.message}")
169+
println("Error during setup: ${e.message}")
170170
throw e
171171
}
172172
}
@@ -181,15 +181,15 @@ class {Service}Scenario {
181181
// Example: Generate sample data if specified
182182
resourceId?.let { id ->
183183
{service}Actions.createSampleData({service}Client, id)
184-
println("Sample data created successfully")
184+
println("Sample data created successfully")
185185

186186
// Wait if specified in the specification
187187
println("Waiting for data to be processed...")
188188
delay(5000)
189189
}
190190

191191
} catch (e: {Service}Exception) {
192-
println("Error during demonstration: ${e.message}")
192+
println("Error during demonstration: ${e.message}")
193193
throw e
194194
}
195195
}
@@ -232,7 +232,7 @@ class {Service}Scenario {
232232
}
233233

234234
} catch (e: {Service}Exception) {
235-
println("Error during examination: ${e.message}")
235+
println("Error during examination: ${e.message}")
236236
throw e
237237
}
238238
}
@@ -250,9 +250,9 @@ class {Service}Scenario {
250250
if (deleteResource) {
251251
try {
252252
{service}Actions.deleteResource({service}Client, id)
253-
println("Deleted resource: $id")
253+
println("Deleted resource: $id")
254254
} catch (e: {Service}Exception) {
255-
println("Error deleting resource: ${e.message}")
255+
println("Error deleting resource: ${e.message}")
256256
}
257257
} else {
258258
println("Resource $id will continue running.")
@@ -335,9 +335,9 @@ val count = readLine()?.toIntOrNull() ?: 0
335335
### Information Display
336336
```kotlin
337337
// Progress indicators
338-
println("Operation completed successfully")
339-
println("⚠️ Warning message")
340-
println("Error occurred")
338+
println("Operation completed successfully")
339+
println("Warning message")
340+
println("Error occurred")
341341

342342
// Formatted output
343343
println(DASHES)
@@ -361,20 +361,20 @@ try {
361361
when (e.errorDetails?.errorCode) {
362362
"BadRequestException" -> {
363363
// Handle as specified: "Validate input parameters and notify user"
364-
println("Invalid configuration. Please check your parameters.")
364+
println("Invalid configuration. Please check your parameters.")
365365
}
366366
"InternalServerErrorException" -> {
367367
// Handle as specified: "Retry operation with exponential backoff"
368-
println("⚠️ Service temporarily unavailable. Retrying...")
368+
println("Service temporarily unavailable. Retrying...")
369369
// Implement retry logic
370370
}
371371
else -> {
372-
println("Unexpected error: ${e.message}")
372+
println("Unexpected error: ${e.message}")
373373
}
374374
}
375375
throw e
376376
} catch (e: ClientException) {
377-
println("Client error: ${e.message}")
377+
println("Client error: ${e.message}")
378378
throw e
379379
}
380380
```

steering_docs/kotlin-tech/hello.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ suspend fun hello{Service}(region: String) {
9393

9494
val response = {service}Client.{basicOperation}(request)
9595

96-
println("🔍 Hello, {AWS Service}!")
96+
println("Hello, {AWS Service}!")
9797

9898
// Display appropriate result information
9999
response.{resultField}?.let { results ->
@@ -110,24 +110,24 @@ suspend fun hello{Service}(region: String) {
110110
}
111111

112112
} catch (e: {Service}Exception) {
113-
println("{AWS Service} error occurred: ${e.message}")
113+
println("{AWS Service} error occurred: ${e.message}")
114114
when (e.errorDetails?.errorCode) {
115115
"UnauthorizedOperation" -> {
116-
println("💡 You don't have permission to access {AWS Service}.")
116+
println("You don't have permission to access {AWS Service}.")
117117
println(" Please check your IAM permissions.")
118118
}
119119
"InvalidParameterValue" -> {
120-
println("💡 Invalid parameter provided to {AWS Service}.")
120+
println("Invalid parameter provided to {AWS Service}.")
121121
println(" Please check your input parameters.")
122122
}
123123
else -> {
124-
println("💡 Please check your AWS credentials and region configuration.")
124+
println("Please check your AWS credentials and region configuration.")
125125
}
126126
}
127127
exitProcess(1)
128128
} catch (e: ClientException) {
129-
println("Client error occurred: ${e.message}")
130-
println("💡 Please check your AWS credentials and network connectivity.")
129+
println("Client error occurred: ${e.message}")
130+
println("Please check your AWS credentials and network connectivity.")
131131
exitProcess(1)
132132
}
133133
}
@@ -159,7 +159,7 @@ suspend fun hello{Service}(region: String) {
159159
val request = List{Resources}Request { }
160160
val response = {service}Client.list{Resources}(request)
161161

162-
println("🔍 Hello, {AWS Service}!")
162+
println("Hello, {AWS Service}!")
163163

164164
response.{resources}?.let { resources ->
165165
println("Found ${resources.size} {resources}:")
@@ -169,7 +169,7 @@ suspend fun hello{Service}(region: String) {
169169
}
170170

171171
} catch (e: {Service}Exception) {
172-
println("{AWS Service} error: ${e.message}")
172+
println("{AWS Service} error: ${e.message}")
173173
exitProcess(1)
174174
}
175175
}
@@ -184,12 +184,12 @@ suspend fun hello{Service}(region: String) {
184184
val request = Get{Service}StatusRequest { }
185185
val response = {service}Client.get{Service}Status(request)
186186

187-
println("🔍 Hello, {AWS Service}!")
187+
println("Hello, {AWS Service}!")
188188
println("Service status: ${response.status}")
189189
println("{AWS Service} is ready to use.")
190190

191191
} catch (e: {Service}Exception) {
192-
println("{AWS Service} error: ${e.message}")
192+
println("{AWS Service} error: ${e.message}")
193193
exitProcess(1)
194194
}
195195
}
@@ -206,7 +206,7 @@ suspend fun hello{Service}(region: String) {
206206
}
207207
val response = {service}Client.describe{Resources}(request)
208208

209-
println("🔍 Hello, {AWS Service}!")
209+
println("Hello, {AWS Service}!")
210210

211211
response.{resources}?.let { resources ->
212212
println("Found ${resources.size} {resources}:")
@@ -216,7 +216,7 @@ suspend fun hello{Service}(region: String) {
216216
}
217217

218218
} catch (e: {Service}Exception) {
219-
println("{AWS Service} error: ${e.message}")
219+
println("{AWS Service} error: ${e.message}")
220220
exitProcess(1)
221221
}
222222
}
@@ -235,28 +235,28 @@ try {
235235
// Service-specific errors
236236
when (e.errorDetails?.errorCode) {
237237
"UnauthorizedOperation" -> {
238-
println("You don't have permission to access {AWS Service}.")
239-
println("💡 Please check your IAM permissions.")
238+
println("You don't have permission to access {AWS Service}.")
239+
println("Please check your IAM permissions.")
240240
}
241241
"InvalidParameterValue" -> {
242-
println("Invalid parameter provided to {AWS Service}.")
243-
println("💡 Please verify your input parameters.")
242+
println("Invalid parameter provided to {AWS Service}.")
243+
println("Please verify your input parameters.")
244244
}
245245
"ResourceNotFoundException" -> {
246-
println("Resource not found in {AWS Service}.")
247-
println("💡 Please check if the resource exists.")
246+
println("Resource not found in {AWS Service}.")
247+
println("Please check if the resource exists.")
248248
}
249249
else -> {
250-
println("{AWS Service} error: ${e.message}")
251-
println("💡 Please check your AWS configuration.")
250+
println("{AWS Service} error: ${e.message}")
251+
println("Please check your AWS configuration.")
252252
}
253253
}
254254
exitProcess(1)
255255

256256
} catch (e: ClientException) {
257257
// General client errors (network, credentials, etc.)
258-
println("Client error: ${e.message}")
259-
println("💡 Please check your AWS credentials and network connectivity.")
258+
println("Client error: ${e.message}")
259+
println("Please check your AWS credentials and network connectivity.")
260260
exitProcess(1)
261261
}
262262
```

steering_docs/kotlin-tech/metadata.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,38 +119,30 @@ Look for the metadata table:
119119
All code must include proper snippet tags that match metadata:
120120

121121
```kotlin
122-
// snippet-start:[{service}.kotlin.{action_name}.main]
123122
suspend fun {actionMethod}({service}Client: {Service}Client, param: String): {ActionName}Response {
124123
// Action implementation
125124
}
126-
// snippet-end:[{service}.kotlin.{action_name}.main]
127125
```
128126

129127
### Actions Class Tags
130128
```kotlin
131-
// snippet-start:[{service}.kotlin.{service}_actions.main]
132129
class {Service}Actions {
133130
// Actions class implementation
134131
}
135-
// snippet-end:[{service}.kotlin.{service}_actions.main]
136132
```
137133

138134
### Scenario Tags
139135
```kotlin
140-
// snippet-start:[{service}.kotlin.{service}_scenario.main]
141136
class {Service}Scenario {
142137
// Scenario class implementation
143138
}
144-
// snippet-end:[{service}.kotlin.{service}_scenario.main]
145139
```
146140

147141
### Hello Tags
148142
```kotlin
149-
// snippet-start:[{service}.kotlin.hello.main]
150143
suspend fun main() {
151144
// Hello implementation
152145
}
153-
// snippet-end:[{service}.kotlin.hello.main]
154146
```
155147

156148
## Service Abbreviations

0 commit comments

Comments
 (0)