mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 01:48:34 -07:00
Add function for generating bzlmod integrety value
This commit is contained in:
parent
7ed475cb58
commit
7deb886ee9
@ -20,3 +20,9 @@ The plugin has a copy of [the completion script from the git repository][1].
|
||||
| bzt | `bazel test` | The `bazel test` command |
|
||||
| bzr | `bazel run` | The `bazel run` command |
|
||||
| bzq | `bazel query` | The `bazel query` command |
|
||||
|
||||
## Functions
|
||||
|
||||
| Function | Description |
|
||||
| -------- | ---------------------------------------- |
|
||||
| bzlmod_integrety | Generate bzlmod integrity value |
|
||||
|
@ -3,3 +3,7 @@ alias bzb='bazel build'
|
||||
alias bzt='bazel test'
|
||||
alias bzr='bazel run'
|
||||
alias bzq='bazel query'
|
||||
|
||||
bzlmod_integrety() {
|
||||
openssl dgst -sha256 -binary $1 | openssl base64 -A | sed 's/^/sha256-/'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user