Skip to content

Commit

Permalink
💡 Update helping messages
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Dec 13, 2024
1 parent 7745ee7 commit 61fef76
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/src/command/add.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,19 @@ For example:
`$topLevelProgram pub add foo:^1.2.3`
* Add multiple dependencies:
`$topLevelProgram pub add foo dev:bar`
* Add a dependency override:
`$topLevelProgram pub add override:foo:1.0.0`
* Add a path dependency:
`$topLevelProgram pub add 'foo:{"path":"../foo"}'`
`$topLevelProgram pub add "foo:{path: ../foo}"`
* Add a hosted dependency:
`$topLevelProgram pub add 'foo:{"hosted":"my-pub.dev"}'`
`$topLevelProgram pub add "foo:{hosted: https://my-pub.dev}"`
* Add an sdk dependency:
`$topLevelProgram pub add 'foo:{"sdk":"flutter"}'`
`$topLevelProgram pub add "foo:{sdk: flutter}"`
* Add a git dependency:
`$topLevelProgram pub add 'foo:{"git":"https://github.com/foo/foo"}'`
* Add a dependency override:
`$topLevelProgram pub add 'override:foo:1.0.0'`
`$topLevelProgram pub add "foo:{git: https://github.com/foo/foo}"`
* Add a git dependency with a path and ref specified:
`$topLevelProgram pub add \\
'foo:{"git":{"url":"../foo.git","ref":"<branch>","path":"<subdir>"}}'`''';
"foo:{git:{url: ../foo.git, ref: <branch>, path: <subdir>}}"`''';

@override
String get argumentsDescription =>
Expand Down

0 comments on commit 61fef76

Please sign in to comment.