Skip to content

sg: remove feedback flag from parent command

Administrator requested to merge bo/fix-sg-error-parent-command into main

Created by: BolajiOlajide

Test plan

Running a parent command (i.e a. command that has subcommands) like sg db or sg migration now displays the appropriate help text.

Context

When I ran a parent command sg adr to get the available subcommands resulted in a panic. I tested with commands without subcommands, and they work fine.

Before After
CleanShot 2022-07-18 at 05 58 09@2x CleanShot 2022-07-18 at 06 02 55@2x

A major side-effect of this PR is that the parent commands won't have the --feedback flag included in the doc anymore, however the flag will continue to work. The documentation generated should reflect the above point.

Merge request reports

Loading