diff --git a/lib/src/command/add.dart b/lib/src/command/add.dart index 5fe7f048a..b305a2d72 100644 --- a/lib/src/command/add.dart +++ b/lib/src/command/add.dart @@ -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":"","path":""}}'`'''; + "foo:{git:{url: ../foo.git, ref: , path: }}"`'''; @override String get argumentsDescription =>