Skip to content

Commit

Permalink
Only print Available Plugins when the list is not empty. (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
timburks authored Jun 8, 2023
1 parent 7af9790 commit cd48182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/registry/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Examples:
{{.Example}}{{end}}{{if .HasAvailableSubCommands}}
Available Commands:{{range .Commands}}{{if (or .IsAvailableCommand (eq .Name "help"))}}
{{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableLocalFlags}}
{{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if gt (len Plugins) 0}}
Available Plugins:
{{- range Plugins}}
Expand Down

0 comments on commit cd48182

Please sign in to comment.