Skip to content

Commit a1b29f4

Browse files
authored
[Docs] Use the percent sign as the prompt symbol consistently (#466)
### Motivation As part of docs polish, ensure we're consistently using the percent sign as the prompt symbol. ### Modifications Fix up. ### Result Consistent docs. ### Test Plan N/A
1 parent b5acdd0 commit a1b29f4

File tree

18 files changed

+59
-64
lines changed

18 files changed

+59
-64
lines changed

Examples/auth-client-middleware-example/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ The server can be started by running the `AuthenticationServerMiddleware` exampl
2121

2222
Build and run the client CLI using:
2323

24-
```
25-
$ swift run HelloWorldURLSessionClient token_for_Fr
24+
```console
25+
% swift run HelloWorldURLSessionClient token_for_Frank
2626
Hello, Stranger! (Requested by: Frank)
27-
$ swift run HelloWorldURLSessionClient invalid_token
27+
% swift run HelloWorldURLSessionClient invalid_token
2828
Unauthorized
2929
```

Examples/auth-server-middleware-example/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ The tool uses the [Vapor](https://github.com/vapor/vapor) server framework to ha
1515

1616
The CLI starts the server on `http://localhost:8080` and can be invoked by running the `AuthenticationClientMiddleware` example client or on the command line using:
1717

18-
```
19-
$ curl -H 'Authorization: token_for_Frank' 'http://localhost:8080/api/greet?name=Jane'
18+
```console
19+
% curl -H 'Authorization: token_for_Frank' 'http://localhost:8080/api/greet?name=Jane'
2020
{
2121
"message" : "Hello, Jane! (Requested by: Frank)"
2222
}
@@ -26,8 +26,8 @@ $ curl -H 'Authorization: token_for_Frank' 'http://localhost:8080/api/greet?name
2626

2727
Build and run the server CLI using:
2828

29-
```
30-
$ swift run
29+
```console
30+
% swift run
3131
2023-12-01T14:14:35+0100 notice codes.vapor.application : [Vapor] Server starting on http://127.0.0.1:8080
3232
...
3333
```

Examples/command-line-client-example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The server can be started by running any of the Hello World server examples loca
1616

1717
Build and run the client CLI using:
1818

19-
```
20-
$ swift run CommandLineClient greet --name CLI
19+
```console
20+
% swift run CommandLineClient greet --name CLI
2121
Hello, CLI!
2222
```

Examples/curated-client-library-example/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ In another package, add this one as a package dependency.
2020

2121
Then, use the provided client API:
2222

23-
```
23+
```swift
2424
import CuratedLibraryClient
2525

2626
let client = GreetingClient()
@@ -32,8 +32,8 @@ print("Received the greeting message: \(message)")
3232

3333
Run tests using:
3434

35-
```
36-
swift test
35+
```console
36+
% swift test
3737
```
3838

3939
The testing strategy is to use a test implementation of the generated `APIProtocol` that allows simulating various conditions, including errors.

Examples/hello-world-async-http-client-example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The server can be started by running any of the Hello World server examples loca
1616

1717
Build and run the client CLI using:
1818

19-
```
20-
$ swift run
19+
```console
20+
% swift run
2121
Hello, Stranger!
2222
```

Examples/hello-world-hummingbird-server-example/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ The tool uses the [Hummingbird](https://github.com/hummingbird-project/hummingbi
1212

1313
The CLI starts the server on `http://localhost:8080` and can be invoked by running any of the Hello World example clients or on the command line using:
1414

15-
```
16-
$ curl http://localhost:8080/api/greet
15+
```console
16+
% curl http://localhost:8080/api/greet
1717
{
1818
"message" : "Hello, Stranger!"
1919
}
@@ -23,8 +23,8 @@ $ curl http://localhost:8080/api/greet
2323

2424
Build and run the server CLI using:
2525

26-
```
27-
$ swift run
26+
```console
27+
% swift run
2828
2023-12-01T14:14:35+0100 info HummingBird : [HummingbirdCore] Server started and listening on 127.0.0.1:8080
2929
...
3030
```
@@ -33,8 +33,8 @@ $ swift run
3333

3434
Run tests using:
3535

36-
```
37-
swift test
36+
```console
37+
% swift test
3838
```
3939

4040
The testing strategy is to call the `Handler` directly from tests, as it conforms the `APIProtocol` and implements the business logic.

Examples/hello-world-urlsession-client-example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The server can be started by running any of the Hello World server examples loca
1616

1717
Build and run the client CLI using:
1818

19-
```
20-
$ swift run
19+
```console
20+
% swift run
2121
Hello, Stranger!
2222
```

Examples/hello-world-vapor-server-example/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ The tool uses the [Vapor](https://github.com/vapor/vapor) server framework to ha
1212

1313
The CLI starts the server on `http://localhost:8080` and can be invoked by running any of the Hello World example clients or on the command line using:
1414

15-
```
16-
$ curl http://localhost:8080/api/greet
15+
```console
16+
% curl http://localhost:8080/api/greet
1717
{
1818
"message" : "Hello, Stranger!"
1919
}
@@ -23,8 +23,8 @@ $ curl http://localhost:8080/api/greet
2323

2424
Build and run the server CLI using:
2525

26-
```
27-
$ swift run
26+
```console
27+
% swift run
2828
2023-12-01T14:14:35+0100 notice codes.vapor.application : [Vapor] Server starting on http://127.0.0.1:8080
2929
...
3030
```
@@ -33,8 +33,8 @@ $ swift run
3333

3434
Run tests using:
3535

36-
```
37-
swift test
36+
```console
37+
% swift test
3838
```
3939

4040
The testing strategy is to call the `Handler` directly from tests, as it conforms the `APIProtocol` and implements the business logic.

Examples/manual-generation-generator-cli-example/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ The server can be started by running any of the Hello World server examples loca
1818

1919
Whenever the `openapi.yaml` document changes, rerun the code generation:
2020

21-
```
22-
make generate
21+
```console
22+
% make generate
2323
```
2424

2525
And then check in the changed files in `./Sources/ManualGeneratorInvocationClient/Generated/*`.
@@ -28,7 +28,7 @@ And then check in the changed files in `./Sources/ManualGeneratorInvocationClien
2828

2929
Build and run the client CLI using:
3030

31-
```
32-
$ swift run
31+
```console
32+
% swift run
3333
Hello, Stranger!
3434
```

Examples/manual-generation-package-plugin-example/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ The server can be started by running any of the Hello World server examples loca
1818

1919
Whenever the `openapi.yaml` document changes, rerun the code generation:
2020

21-
```
22-
$ swift package generate-code-from-openapi
21+
```console
22+
% swift package generate-code-from-openapi
2323
Plugin ‘OpenAPIGeneratorCommand’ wants permission to write to the package directory.
2424
Stated reason: “To write the generated Swift files back into the source directory of the package.”.
2525
Allow this plugin to write to the package directory? (yes/no) yes
@@ -33,7 +33,7 @@ And then check in the changed files in `./Sources/CommandPluginInvocationClient/
3333

3434
Build and run the client CLI using:
3535

36-
```
37-
$ swift run
36+
```console
37+
% swift run
3838
Hello, Stranger!
3939
```

0 commit comments

Comments
 (0)