Adding a new capability#
By design, codeanalyzevcs breaks every unique AWS resource into its own top level command. If you are looking to add a brand new capability to the tool, you can take the following steps.
- Add a file to
cmd/that corresponds to the sub-command name you'd like to add to thecodeanalyzevcsCLI - You can use
cmd/gitlab.goas a template - Your file needs to be a member function of the
codeanalyzevcsstruct and should be of the formInit<cmd>Command - Add a new member to the
codeanalyzevcsstruct incmd/root.gothat corresponsds to your command name. Remember, the first letter must be capitalized. - Call your
Initfunction frommain.go - Add logic to your commands runtime and put it in its own package within
internal(e.g.,internal/gitlab)