From 495a08eddaef290dd4a6f63a543cf31ef26522f5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 15 Jan 2024 19:39:19 -0600 Subject: start to clean out directories Signed-off-by: Jeff Carr --- dnssecsocket/args.go | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 dnssecsocket/args.go (limited to 'dnssecsocket/args.go') diff --git a/dnssecsocket/args.go b/dnssecsocket/args.go deleted file mode 100644 index cbd9fe7..0000000 --- a/dnssecsocket/args.go +++ /dev/null @@ -1,44 +0,0 @@ -package dnssecsocket - -// -// By using the package "github.com/alexflint/go-arg", -// these can be configured from the command line -// - -import ( - // arg "github.com/alexflint/go-arg" - // "log" - // "os" -) - -type Args struct { - VerboseDnssec bool `arg:"--verbose-dnssec" help:"debug dnssec lookups"` - Foo string `arg:"env:USER"` -} - -var args struct { - Args - Verbose bool -} - -func Parse (b bool) { - args.Verbose = b - args.VerboseDnssec = b -} - -// I attempted to pass the *arg.Parser down -// to see if I could find the value somewhere but I couldn't find it -/* -var conf arg.Config - -func Parse (p *arg.Parser) { - // conf.Program = "control-panel-dns" - // conf.IgnoreEnv = false - // arg.NewParser(conf, &args) - log.Println("fuckit", p, args.VerboseDnssec) - for i, v := range p.SubcommandNames() { - log.Println("dnssec.Parse", i, v) - } - p.Jcarr() -} -*/ -- cgit v1.2.3