|
|
|
@ -20,11 +20,11 @@ A prebuilt deb-package is also available from the release page: https://code.smo
|
|
|
|
|
## Shell completion
|
|
|
|
|
For bash: add this to .bashrc
|
|
|
|
|
```
|
|
|
|
|
source <(knotctl complete)
|
|
|
|
|
source <(knotctl completion)
|
|
|
|
|
```
|
|
|
|
|
For fish, run:
|
|
|
|
|
```
|
|
|
|
|
knotctl complete --shell fish > ~/.config/fish/completions/knotctl.fish
|
|
|
|
|
knotctl completion --shell fish > ~/.config/fish/completions/knotctl.fish
|
|
|
|
|
```
|
|
|
|
|
For tcsh: add this to .cshrc
|
|
|
|
|
```
|
|
|
|
@ -34,15 +34,15 @@ For zsh: add this to .zshrc
|
|
|
|
|
```
|
|
|
|
|
autoload -U bashcompinit
|
|
|
|
|
bashcompinit
|
|
|
|
|
source <(knotctl complete)
|
|
|
|
|
source <(knotctl completion)
|
|
|
|
|
```
|
|
|
|
|
## Usage
|
|
|
|
|
```
|
|
|
|
|
usage: knotctl [-h] [--json | --no-json]
|
|
|
|
|
{add,complete,config,delete,list,update} ...
|
|
|
|
|
{add,completion,config,delete,list,update} ...
|
|
|
|
|
|
|
|
|
|
positional arguments:
|
|
|
|
|
{add,complete,config,delete,list,update}
|
|
|
|
|
{add,completion,config,delete,list,update}
|
|
|
|
|
|
|
|
|
|
options:
|
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
@ -60,9 +60,9 @@ options:
|
|
|
|
|
-t TTL, --ttl TTL
|
|
|
|
|
-z ZONE, --zone ZONE
|
|
|
|
|
```
|
|
|
|
|
### COMPLETE
|
|
|
|
|
### COMPLETION
|
|
|
|
|
```
|
|
|
|
|
usage: knotctl complete [-h] [-s SHELL]
|
|
|
|
|
usage: knotctl completion [-h] [-s SHELL]
|
|
|
|
|
|
|
|
|
|
options:
|
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
|