mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-16 14:27:01 +00:00
chasquid-util: Remove dependency on docopt-go
The docopt-go library is quite convenient, but it has been abandoned for a while :( Since we only use it for chasquid-util, this patch removes it and replaces it with a custom small parser, that is a reasonable fit for the required use cases. The patch also adds a couple of tests to increase coverage. NOTE: docopt-go accepted some undocumented behaviour, in particular the use of "-a b" instead of "-a=b". The new parser does not, so some user scripts may require updating. I think this should be rare enough not to be worth the complexity of adjusting the parser to allow it.
This commit is contained in:
1
go.mod
1
go.mod
@@ -6,7 +6,6 @@ require (
|
||||
blitiri.com.ar/go/log v1.1.0
|
||||
blitiri.com.ar/go/spf v1.1.1
|
||||
blitiri.com.ar/go/systemd v1.1.0
|
||||
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
|
||||
github.com/golang/protobuf v1.4.2
|
||||
github.com/google/go-cmp v0.4.0
|
||||
golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37
|
||||
|
||||
Reference in New Issue
Block a user