Hello list readers,

I started to write a bash autocompletion script with support for all operations 
of swanctl.
However, autocompletion of any IKE_SA or CHILD_SA configs or IDs is not 
supported because
there is no nice, completely integrated way to get all the current names and 
IDs in use just with bash
in a nice, programmatic manner (no, awk and sed are not nice).
This is all WIP and right now I'm stuck with the problem that the auto 
completion always adds a dash (-)
as first character, even if variable data needs to be provided as a value to an 
argument.

Most of the boilerplate code is already in place. If you can provide a workable 
solution for getting the
conn names and so on via VICI that is integrated with strongswan.conf (to get 
the configured swanctl
VICI URL) that maybe uses awk or something like that, I'm willing to add that, 
too.

The repo is on Github[1]. You're welcome to help develop this further.

Kind regards

Noel

[1] https://github.com/Thermi/swanctl-completion

-- 
Noel Kuntze
IT security consultant

GPG Key ID: 0x0739AD6C
Fingerprint: 3524 93BE B5F7 8E63 1372 AF2D F54E E40B 0739 AD6C


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to