diff --git a/test/testdata/goldens/help_test/pub add --help.txt b/test/testdata/goldens/help_test/pub add --help.txt index 5c4f71b42..45611e0c5 100644 --- a/test/testdata/goldens/help_test/pub add --help.txt +++ b/test/testdata/goldens/help_test/pub add --help.txt @@ -14,7 +14,7 @@ Make dependency overrides by prefixing with "override:". Add packages with specific constraints or other sources by giving a descriptor after a colon. -For example: +For example (follow the same format including spaces): * Add a hosted dependency at newest compatible stable version: `dart pub add foo` * Add a hosted dev dependency at newest compatible stable version: @@ -23,19 +23,19 @@ For example: `dart pub add foo:^1.2.3` * Add multiple dependencies: `dart pub add foo dev:bar` + * Add a dependency override: + `dart pub add 'override:foo:1.0.0'` * Add a path dependency: - `dart pub add 'foo:{"path":"../foo"}'` + `dart pub add "foo:{path: ../foo}"` * Add a hosted dependency: - `dart pub add 'foo:{"hosted":"my-pub.dev"}'` + `dart pub add "foo:{hosted: https://my-pub.dev}"` * Add an sdk dependency: - `dart pub add 'foo:{"sdk":"flutter"}'` + `dart pub add "foo:{sdk: flutter}"` * Add a git dependency: - `dart pub add 'foo:{"git":"https://github.com/foo/foo"}'` - * Add a dependency override: - `dart pub add 'override:foo:1.0.0'` + `dart pub add "foo:{git: https://github.com/foo/foo}"` * Add a git dependency with a path and ref specified: `dart pub add \ - 'foo:{"git":{"url":"../foo.git","ref":"","path":""}}'` + "foo:{git:{url: ../foo.git, ref: , path: }}"` Usage: pub add [options] [
:][:descriptor] [
:][:descriptor] ...] -h, --help Print this usage information.