You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am interested in a command that gives me the list of configured modules.
buf config ls-modules <path>
It takes up to one argument, which is a path to a module or workspace root (where the configuration file lives). This path defaults to . when left empty.
For example, if I have a workspace that has a v2buf.yaml that looks like the following:
In a directory tree that looks like the following:
$ tree
.
├── buf.yaml
├── proto
│ └── ...
├── vendor
│ └── ...
└── ...
I want something that does the following, assume all commands are run at .:
$ buf config ls-modules
Path Name
proto buf.build/foo/foo
vendor
$ buf config ls-modules --names-only
buf.build/foo/foo
$ buf config ls-modules --paths-only
proto
vendor
$ buf config ls-modules --names-only --paths-only
Failure: cannot set --names-only --paths-only together
The path will always be the module root and the name is the module name, if one is available. For remote modules, the root of a remote module is always ., since the remote reference will always "start at its root".
The text was updated successfully, but these errors were encountered:
I am interested in a command that gives me the list of configured modules.
It takes up to one argument, which is a path to a module or workspace root (where the configuration file lives). This path defaults to
.
when left empty.For example, if I have a workspace that has a
v2
buf.yaml
that looks like the following:In a directory tree that looks like the following:
I want something that does the following, assume all commands are run at
.
:The path will always be the module root and the name is the module name, if one is available. For remote modules, the root of a remote module is always
.
, since the remote reference will always "start at its root".The text was updated successfully, but these errors were encountered: