Added missing code block language in docs (#147481)

- added language for all code blocks
- replaced `bash` or `shell` with `sh` for consistency.
- added `sh` and `console` in the GitHub template link generator.
- updated test for GitHub template.
This commit is contained in:
Kishan Dhankecha
2024-05-01 20:14:27 +05:30
committed by GitHub
parent cb2197e9b3
commit 2867ac7885
28 changed files with 58 additions and 58 deletions

View File

@@ -4,7 +4,7 @@
The `flutter` command-line tool supports a daemon server mode for use by IDEs and other tools.
```
```sh
flutter daemon
```
@@ -16,13 +16,13 @@ A set of `flutter daemon` commands/events are also exposed via `flutter run --ma
The daemon speaks [JSON-RPC](http://json-rpc.org/) to clients. It uses stdin and stdout as the transport protocol. To send a command to the server, create your command as a JSON-RPC message, encode it to JSON, surround the encoded text with square brackets, and write it as one line of text to the stdin of the process:
```
```json
[{"method":"daemon.version","id":0}]
```
The response will come back as a single line from stdout:
```
```json
[{"id":0,"result":"0.1.0"}]
```
@@ -34,17 +34,17 @@ Each command should have a `method` field. This is in the form '`domain.command`
Any params for that command should be passed in through a `params` field. Here's an example request/response for the `device.getDevices` method:
```
```json
[{"method":"device.getDevices","id":2}]
```
```
```json
[{"id":2,"result":[{"id":"702ABC1F-5EA5-4F83-84AB-6380CA91D39A","name":"iPhone 6","platform":"ios_x64","available":true}]}]
```
Events that come from the server will have an `event` field containing the type of event, along with a `params` field.
```
```json
[{"event":"device.added","params":{"id":"1DD6786B-37D4-4355-AA15-B818A87A18B4","name":"iPhone XS Max","platform":"ios","emulator":true,"ephemeral":false,"platformType":"ios","category":"mobile"}}]
```