Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
climate
"CLI Mate" autogenerates CLIs from structs / functions (nested subcommands, global / local flags, help generation, typo suggestions, shell completion etc.) (by avamsi)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Link: https://github.com/AlexNabokikh/tfsort
Cool! So this should work for any hcl file not just terraform config
I see you're using Cobra -- https://github.com/avamsi/clifr offers most of the goodness of Cobra (Clifr uses Cobra under the hood) with a much simpler "API" IMO (you just write a struct and Clifr handles the rest). Feel free to give it a try and file issues if there's anything you see missing from Cobra etc.
I am not entirely sure that I understand your question. Apart from basic knowledge of golang syntax and programming in general, there are no prerequisites. If you want a quick start, you may look at the https://github.com/eldad87/go-boilerplate. For the CLI tool, consider using https://github.com/spf13/cobra. It can generate project structure. I hope that helps. Cheers
I am not entirely sure that I understand your question. Apart from basic knowledge of golang syntax and programming in general, there are no prerequisites. If you want a quick start, you may look at the https://github.com/eldad87/go-boilerplate. For the CLI tool, consider using https://github.com/spf13/cobra. It can generate project structure. I hope that helps. Cheers
Related posts
- The power of the CLI with Golang and Cobra CLI
- O poder do CLI com Golang e Cobra CLI
- Which packages do you recommend for building cli tools?
- Re-introducing "define" - A command-line dictionary (thesaurus) app, with access to multiple sources, written in Go.
- Re-introducing "define" - A command-line dictionary (thesaurus) app, with access to multiple sources, written in Go.