Skip to content

Commit

Permalink
✅ Fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Dec 16, 2024
1 parent 68f80bb commit 6d61218
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/testdata/goldens/help_test/pub add --help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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":"<branch>","path":"<subdir>"}}'`
"foo:{git:{url: ../foo.git, ref: <branch>, path: <subdir>}}"`

Usage: pub add [options] [<section>:]<package>[:descriptor] [<section>:]<package2>[:descriptor] ...]
-h, --help Print this usage information.
Expand Down

0 comments on commit 6d61218

Please sign in to comment.