From 86cd7535a99bdf7a31e8fd84ff708c94608f6ca3 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Fri, 13 Dec 2024 22:29:42 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=F0=9F=92=A1=20Update=20helping=20mes?= =?UTF-8?q?sages"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit b772433be623821a13fb9b443261feddddd49c74. --- lib/src/command/add.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/src/command/add.dart b/lib/src/command/add.dart index 10a97487c..f3712cdf3 100644 --- a/lib/src/command/add.dart +++ b/lib/src/command/add.dart @@ -68,18 +68,18 @@ For example: * Add multiple dependencies: `$topLevelProgram pub add foo dev:bar` * 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":"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"}` + `$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 'override:foo:1.0.0'` * 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 =>