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