-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rename to bzlcmd + readme update (#5)
- Loading branch information
Showing
2 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module( | ||
name = "bzlreg", | ||
name = "bzlcmd", | ||
version = "0.1.0", | ||
compatibility_level = 1, | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,37 @@ | ||
# bazel registry command line tool | ||
# bzlcmd - CLI tools for bazel projects | ||
|
||
Simple command line tool for managing a bazel registry. | ||
## bzlmod | ||
|
||
WORK IN PROGRESS | ||
Create a simple `MODULE.bazel` file and some other bazel files to get you started. | ||
|
||
```sh | ||
bzlmod init | ||
``` | ||
|
||
Add a dependency to your bazel module file with ease! Correctly checks third party dependencies configured in your `.bazelrc` files as well. | ||
|
||
```sh | ||
bzlmod add rules_cc | ||
``` | ||
|
||
`MODULE.bazel` after command: | ||
|
||
```diff | ||
module(name = "my_cool_module") | ||
|
||
+bazel_dep(name = "rules_cc", version = "0.0.8") | ||
``` | ||
|
||
## bzlreg | ||
|
||
Create file and folder structure required for a [bazel registry](https://bazel.build/external/registry). | ||
|
||
```sh | ||
bzlreg init | ||
``` | ||
|
||
Add a bazel module from it's archive to the registry. | ||
|
||
``` | ||
bzlreg add-module http://example.com/some/targz/archive.tar.gz | ||
``` |