Skip to content

Commit fa86b5b

Browse files
committed
move comment above client config
1 parent 07533e5 commit fa86b5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CommandGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ private String getCommandExample(String serviceName, String configName, String c
254254
packageName)
255255
+ String.format("// const { %s, %s } = require(\"%s\"); // CommonJS import%n", serviceName, commandName,
256256
packageName)
257-
+ String.format("const client = new %s(config); // See AWS SDK config options: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/configuring-the-jssdk.html%n", serviceName)
257+
+ "// See AWS SDK config options: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/configuring-the-jssdk.html\n"
258+
+ String.format("const client = new %s(config);%n", serviceName)
258259
+ String.format("const input = %s%n",
259260
StructureExampleGenerator.generateStructuralHintDocumentation(
260261
model.getShape(operation.getInputShape()).get(), model, false, true))

0 commit comments

Comments
 (0)