Skip to content

Commit 4016eb2

Browse files
authored
FWE patch one (#7131)
Small updates to resolve content issues. Fixes <Replace with issue link> #7125 #7126 #7118 --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. - [x] This PR doesn't contain automatically generated corrections or text (Grammarly, LLMs, and similar). - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn't use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide](https://github.com/dart-lang/site-www/blob/main/CONTRIBUTING.md) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Code changes should generally follow the [Dart style guide](https://dart.dev/effective-dart) and use `dart format`. - Updates to [code excerpts](https://github.com/dart-lang/site-shared/blob/main/packages/excerpter) indicated by `<?code-excerpt` need to be updated in their source `.dart` file as well. </details>
1 parent 3b423b3 commit 4016eb2

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/content/learn/tutorial/cli-polish.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Finally, update your main application to use the new `onOutput` feature.
201201
const version = '0.0.1';
202202
203203
void main(List<String> arguments) {
204-
var commandRunner = CommandRunner<String>(
204+
var commandRunner = CommandRunner(
205205
onOutput: (String output) async {
206206
await write(output);
207207
},

src/content/learn/tutorial/error-handling.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ represent errors related to command-line arguments.
6767
super.source,
6868
super.offset,
6969
]);
70+
71+
@override
72+
String toString() {
73+
return 'ArgumentException: $message';
74+
}
7075
}
7176
```
7277

src/content/learn/tutorial/logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ create a logger instance and log messages to a file.
202202
void main(List<String> arguments) async {
203203
final errorLogger = initFileLogger('errors');
204204
final app =
205-
CommandRunner<String>(
205+
CommandRunner(
206206
onOutput: (String output) async {
207207
await write(output);
208208
},

0 commit comments

Comments
 (0)