Added auto-generation for CLI documentation from Go code. A new command has been added to the make generate rule which autogenerates the documentation.
You can also run go run -ldflags '-X main.genDocs=true' cmd/nginx-meshctl/main.go > /dev/null to just generate the documentation.
Removed UsageTemplates from top.go and upgrade.go since they were printing out some flags redundantly.
Checklist
Before creating a PR, run through this checklist and mark each as complete.
Proposed changes
make generate
rule which autogenerates the documentation.go run -ldflags '-X main.genDocs=true' cmd/nginx-meshctl/main.go > /dev/null
to just generate the documentation.top.go
andupgrade.go
since they were printing out some flags redundantly.Checklist
Before creating a PR, run through this checklist and mark each as complete.