crackcomm / cloudflare Goto Github PK
View Code? Open in Web Editor NEWCloudFlare® command line tool and Go client
License: Apache License 2.0
CloudFlare® command line tool and Go client
License: Apache License 2.0
# go install github.com/crackcomm/cloudflare/cf
# github.com/crackcomm/cloudflare/cf/cmd
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:16:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:20:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:24:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:28:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:32:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:36:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_create.go:41:8: cannot use func literal (type func(*cli.Context)) as type cli.ActionFunc in field value
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_list.go:19:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_list.go:23:17: cannot use cli.StringFlag literal (type cli.StringFlag) as type cli.Flag in array or slice literal:
cli.StringFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_list.go:27:15: cannot use cli.BoolFlag literal (type cli.BoolFlag) as type cli.Flag in array or slice literal:
cli.BoolFlag does not implement cli.Flag (Apply method has pointer receiver)
go/src/github.com/crackcomm/cloudflare/cf/cmd/cmd_firewalls_list.go:27:15: too many errors
(That is on Ubuntu 18.04's ancient Go 1.10) (I probably need to try newer versions as well though)
Possibly related to this: https://github.com/urfave/cli/blob/master/docs/migrate-v1-to-v2.md (Which would be a library issue rather than a Go version one) Via this
Records.Create() simply drops the resulting body of the API call. Most importantly, this drops the "id" meaning that any created record can't be safely looked back up. DNS can have multiple identical records with the same type and even value so there is no safe way to look that value up without getting this ID.
Records.Details() gives an error about not being able to unmarshal into the proper resulting value. I've traced this down to the wrong type being sent to json.Unmarshal
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.