mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 22:30:07 +00:00
feat(dapr): add plugin for dapr
This commit is contained in:
parent
22de1d304c
commit
a2c6f430b5
2 changed files with 13 additions and 0 deletions
9
plugins/dapr/README.md
Normal file
9
plugins/dapr/README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Dapr CLI
|
||||||
|
|
||||||
|
The [Dapr CLI](https://docs.dapr.io/getting-started/install-dapr-cli/) is the main tool you’ll be using for various Dapr related tasks. You can use it to run an application with a Dapr sidecar, as well as review sidecar logs, list running services, and run the Dapr dashboard. The Dapr CLI works with both self-hosted and Kubernetes environments.
|
||||||
|
|
||||||
|
To use it, add `dapr` to the plugins array of your zshrc file:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
plugins=(... dapr)
|
||||||
|
```
|
4
plugins/dapr/dapr.plugin.zsh
Normal file
4
plugins/dapr/dapr.plugin.zsh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
if [ $commands[dapr] ]; then
|
||||||
|
source <(dapr completion zsh)
|
||||||
|
compdef _dapr dapr
|
||||||
|
fi
|
Loading…
Reference in a new issue