Skip to content

Conversation

RincewindsHat
Copy link
Member

@RincewindsHat RincewindsHat commented Mar 22, 2025

fixes #56

@@ -30,7 +30,9 @@ func GenerateIcinga2Config(cmd *cobra.Command, commandName, executableName strin
ccaFlags = make([]icingadsl.CheckCommandArgument, 0)

flags.VisitAll(func(foo *pflag.Flag) {
_ = GenerateIcinga2CheckCommandArgument(foo, &ccaFlags)
if foo.Name != "help" && foo.Name != "debug" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we replace the name foo?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@RincewindsHat RincewindsHat merged commit 8ee0de9 into main Mar 24, 2025
4 checks passed
@RincewindsHat RincewindsHat deleted the remove_useless_generated_config branch March 24, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Check Command no-help is generated
2 participants