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

@@ -165,10 +165,10 @@ void main() {
expect(
await creator.toolCrashIssueTemplateGitHubURL(command, error, stackTrace, doctorText),
'https://github.com/flutter/flutter/issues/new?title=%5Btool_crash%5D+ArgumentError%3A+'
'Invalid+argument%28s%29%3A+argument+error+message&body=%23%23+Command%0A%60%60%60%0A'
'Invalid+argument%28s%29%3A+argument+error+message&body=%23%23+Command%0A%60%60%60sh%0A'
'flutter+test%0A%60%60%60%0A%0A%23%23+Steps+to+Reproduce%0A1.+...%0A2.+...%0A3.+...%0'
'A%0A%23%23+Logs%0AArgumentError%3A+Invalid+argument%28s%29%3A+argument+error+message'
'%0A%60%60%60%0Atrace%0A%60%60%60%0A%60%60%60%0A+%5B%E2%9C%93%5D+Flutter+%28Channel+r'
'%0A%60%60%60console%0Atrace%0A%60%60%60%0A%60%60%60console%0A+%5B%E2%9C%93%5D+Flutter+%28Channel+r'
'eport%0A%60%60%60%0A%0A%23%23+Flutter+Application+Metadata%0ANo+pubspec+in+working+d'
'irectory.%0A&labels=tool%2Csevere%3A+crash'
);
@@ -222,7 +222,7 @@ project_type: app
final String? actualBody = Uri.parse(actualURL).queryParameters['body'];
const String expectedBody = '''
## Command
```
```sh
flutter test
```
@@ -233,10 +233,10 @@ flutter test
## Logs
ArgumentError: Invalid argument(s): argument error message
```
```console
trace
```
```
```console
[✓] Flutter (Channel report
```

View File

@@ -6,7 +6,7 @@ Dart VM and Flutter integration.
Use this command to run (from the `flutter_tools` directory):
```shell
```sh
../../bin/cache/dart-sdk/bin/dart run test test/integration.shard
```

View File

@@ -6,7 +6,7 @@ Dart web debug services (dwds) and Flutter integration.
Use this command to run (from the `flutter_tools` directory):
```shell
```sh
../../bin/cache/dart-sdk/bin/dart run test test/web.shard
```