Add ability to generate config from available plugins
This commit is contained in:
@@ -16,6 +16,7 @@ var fDebug = flag.Bool("debug", false, "show metrics as they're generated to std
|
||||
var fTest = flag.Bool("test", false, "gather metrics, print them out, and exit")
|
||||
var fConfig = flag.String("config", "", "configuration file to load")
|
||||
var fVersion = flag.Bool("version", false, "display the version")
|
||||
var fSampleConfig = flag.Bool("sample-config", false, "print out full sample configuration")
|
||||
|
||||
var Version = "unreleased"
|
||||
|
||||
@@ -27,6 +28,11 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
if *fSampleConfig {
|
||||
tivan.PrintSampleConfig()
|
||||
return
|
||||
}
|
||||
|
||||
var (
|
||||
config *tivan.Config
|
||||
err error
|
||||
|
||||
Reference in New Issue
Block a user