Fix lint errors, ensure errors start with 'hostname:'

This commit is contained in:
Pim van Pelt
2025-07-07 09:06:20 +02:00
parent 9a2264e867
commit 3da4de7711
3 changed files with 11 additions and 7 deletions

View File

@ -217,7 +217,9 @@ func main() {
rootCmd.Flags().StringSliceVar(&hostFilter, "host", []string{}, "Specific host(s) to process (can be repeated, processes all if not specified)")
rootCmd.Flags().IntVar(&parallel, "parallel", 10, "Maximum number of devices to process in parallel")
rootCmd.MarkFlagRequired("yaml")
if err := rootCmd.MarkFlagRequired("yaml"); err != nil {
log.Fatal(err)
}
if err := rootCmd.Execute(); err != nil {
log.Fatal(err)