Skip to content

Commit

Permalink
Valid subcommands should be on next line
Browse files Browse the repository at this point in the history
  • Loading branch information
samtholiya committed Jan 29, 2025
1 parent 0a0434e commit 7fc52ed
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/cmd_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ func showErrorExampleFromMarkdown(cmd *cobra.Command, arg string) {
}
} else {
if len(cmd.Commands()) > 0 {
details += "Valid subcommands are:\n"
details += "\nValid subcommands are:\n"
}
// Retrieve valid subcommands dynamically
for _, subCmd := range cmd.Commands() {
Expand Down
4 changes: 3 additions & 1 deletion tests/snapshots/TestCLICommands_atmos_atlantis.stderr.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7fc52ed

Please sign in to comment.