Hello list,

I completed the script in Python (it was impossible to do in Bash).
It is feature complete to swanctl in version 5.8.1, as far as I can tell.
All information about the script (like how to build, how to hack, requirements, 
...)
are in the README.md of the repository[1].

I hope you find it helpful. Feedback is encouraged!

Kind regards

Noel

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

Am 27.10.19 um 01:12 schrieb Noel Kuntze:
> 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
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to