mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
Add function for generating bzlmod integrety value
This commit is contained in:
parent
7ed475cb58
commit
7deb886ee9
2 changed files with 14 additions and 4 deletions
|
|
@ -16,7 +16,13 @@ The plugin has a copy of [the completion script from the git repository][1].
|
||||||
|
|
||||||
| Alias | Command | Description |
|
| Alias | Command | Description |
|
||||||
| ------- | -------------------------------------- | ------------------------------------------------------ |
|
| ------- | -------------------------------------- | ------------------------------------------------------ |
|
||||||
| bzb | `bazel build` | The `bazel build` command |
|
| bzb | `bazel build` | The `bazel build` command |
|
||||||
| bzt | `bazel test` | The `bazel test` command |
|
| bzt | `bazel test` | The `bazel test` command |
|
||||||
| bzr | `bazel run` | The `bazel run` command |
|
| bzr | `bazel run` | The `bazel run` command |
|
||||||
| bzq | `bazel query` | The `bazel query` 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 bzt='bazel test'
|
||||||
alias bzr='bazel run'
|
alias bzr='bazel run'
|
||||||
alias bzq='bazel query'
|
alias bzq='bazel query'
|
||||||
|
|
||||||
|
bzlmod_integrety() {
|
||||||
|
openssl dgst -sha256 -binary $1 | openssl base64 -A | sed 's/^/sha256-/'
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue