Skip to content

Commit 49c0228

Browse files
authored
conan list args (#3927)
1 parent 42ab51c commit 49c0228

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

reference/commands/list.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Listing recipe references
3838
:caption: *list all references on local cache*
3939
4040
# Make sure to quote the argument
41-
$ conan list "*"
41+
$ conan list
4242
Local Cache
4343
hello
4444
hello/2.26.1@mycompany/testing
@@ -51,6 +51,9 @@ Listing recipe references
5151
zlib
5252
zlib/1.2.11
5353
54+
This command is equivalent to ``$ conan list "*"`` (make sure to quote the argument), if no argument
55+
is provided Conan will list all packages.
56+
5457
5558
.. code-block:: text
5659
:caption: *list all versions of a reference*

tutorial/versioning/versions.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ That we can create ``pkg/1.0`` package with:
4242
pkg/1.0 .
4343
...
4444
45-
$ conan list "*"
45+
$ conan list "pkg/*"
4646
Local Cache
4747
pkg
4848
pkg/1.0
@@ -59,7 +59,7 @@ create the new ``pkg/1.1`` version:
5959
pkg/1.1 .
6060
...
6161
62-
$ conan list "*"
62+
$ conan list "pkg/*"
6363
Local Cache
6464
pkg
6565
pkg/1.0
@@ -85,7 +85,7 @@ remove the ``version`` attribute from the recipe and do:
8585
pkg/1.2 .
8686
...
8787
88-
$ conan list "*"
88+
$ conan list "pkg/*"
8989
Local Cache
9090
pkg
9191
pkg/1.0
@@ -121,7 +121,7 @@ Then, this can be done:
121121
pkg/1.3 .
122122
...
123123
124-
$ conan list "*"
124+
$ conan list "pkg/*"
125125
Local Cache
126126
pkg
127127
pkg/1.0
@@ -148,7 +148,7 @@ command line argument is not provided with the following syntax:
148148
pkg/1.4 .
149149
...
150150
151-
$ conan list "*"
151+
$ conan list "pkg/*"
152152
Local Cache
153153
pkg
154154
pkg/1.0
@@ -186,7 +186,7 @@ Likewise, it is possible to obtain the version from a Git tag:
186186
pkg/1.5 .
187187
...
188188
189-
$ conan list "*"
189+
$ conan list "pkg/*"
190190
Local Cache
191191
pkg
192192
pkg/1.0

0 commit comments

Comments
 (0)