Skip to content

Commit

Permalink
The dedicated collector binary defaults to doing collection if no par…
Browse files Browse the repository at this point in the history
…ameters are supplied
  • Loading branch information
lkarlslund committed Sep 26, 2024
1 parent c432ec4 commit c56603d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions adalanche/collector.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//go:build collector
// +build collector

package main

import (
"os"

"github.com/lkarlslund/adalanche/modules/cli"
)

func init() {
// Offer default collect for collector binary
if len(os.Args[1:]) == 0 {
cli.OverrideArgs = []string{"collect", "localmachine"}
}
}

0 comments on commit c56603d

Please sign in to comment.