https://github.com/curityio/idsvr-completion
Shell completions for the idsvr command
https://github.com/curityio/idsvr-completion
curity-identity-server extensions scripting
Last synced: about 1 year ago
JSON representation
Shell completions for the idsvr command
- Host: GitHub
- URL: https://github.com/curityio/idsvr-completion
- Owner: curityio
- License: mit
- Created: 2018-03-05T09:47:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-12-19T16:27:17.000Z (over 5 years ago)
- Last Synced: 2025-01-30T13:30:05.220Z (over 1 year ago)
- Topics: curity-identity-server, extensions, scripting
- Language: Shell
- Homepage:
- Size: 500 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shell Completers for the Curity Identity Server
[](https://curity.io/resources/code-examples/status/)
[](https://curity.io/resources/code-examples/status/)
Using these completions, you can _quickly_ tab complete:
* Startup of an admin node
* Launching a new run-time node
* Dumping configuration
* Reloading configuration
* Checking the current version
* and more
Here's a demo using Zsh:

## Bash Installation
To make sure its sourced on shell startup, put the `idsvr-completion` file in the `bash_completion.d` directory. Where that directory is depends on your OS.
* If using Mac OS X with homebrew, the path is `/usr/local/etc/bash_completion.d`.
* If using Linux, its probably in `/etc/bash_completion.d`.
## Zsh Installation
1. Download `_idsvr`.
2. Put the directory that contains the `_idsvr` function in your `fpath`, for example, `fpath+=($PWD/idsvr-completions)`, or put this script in a directory that is already in your `fpath`.
3. Make sure compsys is [initialized](https://zsh.zle.lc/zsh_20.html#Initialization). It is if you can tab complete other commands. If not, it should be enough to run `compinit` in your shell or your initialization file.
4. Then, you need to autoload the `_idsvr` script. To do this, run `autoload -U _idsvr idsvr idsh`. If you work for Curity, you'll want to do `autoload -U _idsvr idsvr idsh run dr`.
## More Information
Please visit [curity.io](https://curity.io/) for more information about the Curity Identity Server.
Copyright (C) 2018-2020 Curity AB.