@bazel/buildozer
Advanced tools
Comparing version 6.1.2 to 6.3.2
{ | ||
"name": "@bazel/buildozer", | ||
"description": "A command line tool to rewrite multiple BUILD files using standard commands", | ||
"version": "6.1.2", | ||
"version": "6.3.2", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "bin": { |
@@ -18,3 +18,3 @@ # Buildozer | ||
```shell | ||
buildozer [OPTIONS] ['command args' | -f FILE ] label-list | ||
buildozer [OPTIONS] ['command args'... | -f FILE ] label-list | ||
``` | ||
@@ -136,13 +136,2 @@ | ||
The following commands only apply to `MODULE.bazel` files (e.g. the target | ||
`//MODULE.bazel:__pkg__`): | ||
* `use_repo_add [dev] <extension .bzl file> <extension name> <repo(s)>`: | ||
Ensures that the given repositories generated by the given extension are | ||
imported via `use_repo`. If the `dev` argument is given, extension usages | ||
with `dev_dependency = True` will be considered instead. | ||
* `use_repo_remove [dev] <extension .bzl file> <extension name> <repo(s)>`: | ||
Ensures that the given repositories generated by the given extension are | ||
*not* imported via `use_repo`. If the `dev` argument is given, extension | ||
usages with `dev_dependency = True` will be considered instead. | ||
Here, `<attr>` represents an attribute (being `add`ed/`rename`d/`delete`d etc.), | ||
@@ -158,2 +147,23 @@ e.g.: `srcs`, `<value(s)>` represents values of the attribute and so on. | ||
The following commands only apply to `MODULE.bazel` files (e.g. the target | ||
`//MODULE.bazel:all`): | ||
* `use_repo_add <use_extension variable name> <repo(s)>`: | ||
Ensures that the given repositories are imported via `use_repo` for the | ||
extension for which the given top-level variable contains the return value | ||
of a `use_extension` call. | ||
* `use_repo_add <use_extension variable name> <repo(s)>`: | ||
Ensures that the given repositories are *not* imported via `use_repo` for | ||
the extension for which the given top-level variable contains the return | ||
value of a `use_extension` call. | ||
* `use_repo_add [dev] <extension .bzl file> <extension name> <repo(s)>`: | ||
Ensures that the given repositories generated by the given extension are | ||
imported via `use_repo`. If the `dev` argument is given, extension usages | ||
with `dev_dependency = True` will be considered instead. Extension usages | ||
with `isolated = True` are ignored. | ||
* `use_repo_remove [dev] <extension .bzl file> <extension name> <repo(s)>`: | ||
Ensures that the given repositories generated by the given extension are | ||
*not* imported via `use_repo`. If the `dev` argument is given, extension | ||
usages with `dev_dependency = True` will be considered instead. Extension | ||
usages with `isolated = True` are ignored. | ||
#### Examples | ||
@@ -283,3 +293,4 @@ | ||
just like arguments on the command-line, except that arguments are separated by | ||
`|`. Lines that start with `#` are ignored. | ||
`|`. Lines that start with `#` are ignored. `|`s in commands can be escaped like | ||
`\|`, but double null bytes (`\x00\x00`) are not valid in command files. | ||
@@ -286,0 +297,0 @@ ```shell |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
36357760
327