[dartdev] Update and fix a few links in tool output and comments

Change-Id: I2bdbd844a0cd5bcdfcaa67861c1a9f301a63c37b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/481000
Reviewed-by: Sigurd Meldgaard <sigurdm@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
This commit is contained in:
Parker Lougheed
2026-02-18 08:28:01 -08:00
committed by Commit Queue
parent a17099d161
commit 6ce5b17052
9 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -38,4 +38,4 @@ Usage: dart fix [arguments]
Run "dart help" to see global options.
```
[analysis_options.yaml]: https://dart.dev/guides/language/analysis-options
[analysis_options.yaml]: https://dart.dev/tools/analysis
+1 -1
View File
@@ -42,7 +42,7 @@ Examples:
dart install '<pkg>@{git: {url: https://github.com/<owner>/<repo>, path: <path>}}'
dart install '<pkg>@{path: /path/to/<pkg>}'
See https://dart.dev/go/pub-descriptors for more details.''';
See https://dart.dev/to/package-descriptors for more details.''';
static const int genericErrorExitCode = 255;
static const gitRefOption = 'git-ref';
+1 -1
View File
@@ -92,7 +92,7 @@ Running a remote package executable:
To run from a git package:
dart run 'pubviz@{git: https://github.com/kevmoo/pubviz}'
See https://dart.dev/go/pub-descriptors for more details.''', verbose) {
See https://dart.dev/to/package-descriptors for more details.''', verbose) {
argParser
..addFlag(
residentOption,
+1 -1
View File
@@ -36,7 +36,7 @@ extension ArgParserExtensions on ArgParser {
allowedHelp: verbose ? allowedHelp : null,
help:
'Enable one or more experimental features '
'(see dart.dev/go/experiments).',
'(see https://dart.dev/go/experiments).',
hide: !verbose,
);
}
+2 -2
View File
@@ -7,7 +7,7 @@ import '../sdk.dart';
String get sdkConstraint => 'sdk: ^${sdk.version}';
const String gitignore = '''
# https://dart.dev/guides/libraries/private-files
# https://dart.dev/tools/private-files
# Created by `dart pub`
.dart_tool/
''';
@@ -42,7 +42,7 @@ include: package:lints/recommended.yaml
# https://dart.dev/go/core-lints
# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options
# https://dart.dev/tools/analysis
''';
const String changelog = '''
+9 -9
View File
@@ -35,12 +35,12 @@ class PackageGenerator extends DefaultGenerator {
}
final String _gitignore = '''
# https://dart.dev/guides/libraries/private-files
# https://dart.dev/tools/private-files
# Created by `dart pub`
.dart_tool/
# Avoid committing pubspec.lock for library packages; see
# https://dart.dev/guides/libraries/private-files#pubspeclock.
# https://dart.dev/tools/pub/private-files#pubspec-lock.
pubspec.lock
''';
@@ -64,17 +64,17 @@ dev_dependencies:
''';
final String _readme = '''
<!--
<!--
This README describes the package. If you publish this package to pub.dev,
this README's contents appear on the landing page for your package.
For information about how to write a good package README, see the guide for
[writing package pages](https://dart.dev/tools/pub/writing-package-pages).
[writing package pages](https://dart.dev/tools/pub/writing-package-pages).
For general information about developing packages, see the Dart guide for
[creating packages](https://dart.dev/guides/libraries/create-packages)
[creating packages](https://dart.dev/tools/pub/create-packages)
and the Flutter guide for
[developing packages and plugins](https://flutter.dev/to/develop-packages).
[developing packages and plugins](https://flutter.dev/to/develop-packages).
-->
TODO: Put a short description of the package here that helps potential users
@@ -92,7 +92,7 @@ start using the package.
## Usage
TODO: Include short and useful examples for package users. Add longer examples
to `/example` folder.
to `/example` folder.
```dart
const like = 'sample';
@@ -100,8 +100,8 @@ const like = 'sample';
## Additional information
TODO: Tell users more about the package: where to find more information, how to
contribute to the package, how to file issues, what response they can expect
TODO: Tell users more about the package: where to find more information, how to
contribute to the package, how to file issues, what response they can expect
from the package authors, and more.
''';
+2 -2
View File
@@ -198,11 +198,11 @@ String wrapText(String text, {int? width}) {
// A valid Dart identifier that can be used for a package, i.e. no
// capital letters.
// https://dart.dev/guides/language/language-tour#important-concepts
// https://dart.dev/language#important-concepts
final RegExp _identifierRegExp = RegExp(r'^[a-z_][a-z\d_]*$');
// non-contextual dart keywords.
// https://dart.dev/guides/language/language-tour#keywords
// https://dart.dev/language/keywords
const Set<String> _keywords = <String>{
'abstract',
'as',
@@ -103,7 +103,7 @@ Examples:
dart install '<pkg>@{git: {url: https://github.com/<owner>/<repo>, path: <path>}}'
dart install '<pkg>@{path: /path/to/<pkg>}'
See https://dart.dev/go/pub-descriptors for more details.
See https://dart.dev/to/package-descriptors for more details.
Usage: dart install <package>[@<descriptor>]
-h, --help Print this usage information.
@@ -84,7 +84,7 @@ Running a remote package executable:
To run from a git package:
dart run 'pubviz@{git: https://github.com/kevmoo/pubviz}'
See https://dart.dev/go/pub-descriptors for more details.'''),
See https://dart.dev/to/package-descriptors for more details.'''),
);
});