Skip to content

Commit 46a8ec3

Browse files
authored
Feature: add buildozer wizard (#80)
* Add buildozer component * Refactor with ConfigurationContext to remove dependency on Container.file global state. * Refactor such that WORKSPACE file is optional. * Refactor as LaunchableComponent * Add documentation
1 parent d9c4ee7 commit 46a8ec3

39 files changed

Lines changed: 1508 additions & 572 deletions

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## 1.4.0 (Nov 4 2021)
4+
5+
- Add buildozer wizard.
6+
- Add buildozer component.
7+
- Update buildtools to 4.2.3
38
## 1.3.0 (Oct 23 2021)
49

510
- Add starlark debug launch support.

docs/formatting.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,21 @@ To format BUILD files on every save, add the following to your settings.json `>
2323
"editor.formatOnSave": true
2424
}
2525
```
26+
27+
## Build File Editing/Rewriting
28+
29+
The
30+
[buildozer](https://github.com/bazelbuild/buildtools/blob/4a3d3f3ff787e3fb7a92d7cceba09c7fe4b71ce4/buildozer/README.md)
31+
command is included.
32+
33+
Despite buildozer's usefulness (when you need it), it can be challenging to
34+
remember the command syntax. A "wizard" command is available
35+
(`shift+ctrl+cmd+p` or `bsv.buildozer.wizard`) that can help you construct a
36+
buildozer command. This will prompt you though the various command arguments,
37+
and run the command in a terminal.
38+
39+
Once you have built an initial buildozer command, it will likely be easier to
40+
simply iterate on it within the terminal itself, rather than re-running the
41+
wizard.
42+
43+
<img width="1193" alt="Screen Shot 2021-11-07 at 10 16 38 AM" src="https://user-images.githubusercontent.com/50580/140654870-fd2fcba3-0a2a-4537-a32b-cf1d59defd00.png">

0 commit comments

Comments
 (0)