Sfoglia il codice sorgente

Display acquisition dir in cscli config show (#1349)

AlteredCoder 3 anni fa
parent
commit
0dd37240a5
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      cmd/crowdsec-cli/config.go

+ 3 - 0
cmd/crowdsec-cli/config.go

@@ -340,6 +340,9 @@ func NewConfigCmd() *cobra.Command {
 					fmt.Printf("Crowdsec:\n")
 					fmt.Printf("  - Acquisition File        : %s\n", csConfig.Crowdsec.AcquisitionFilePath)
 					fmt.Printf("  - Parsers routines        : %d\n", csConfig.Crowdsec.ParserRoutinesCount)
+					if csConfig.Crowdsec.AcquisitionDirPath != "" {
+						fmt.Printf("  - Acquisition Folder      : %s\n", csConfig.Crowdsec.AcquisitionDirPath)
+					}
 				}
 				if csConfig.Cscli != nil {
 					fmt.Printf("cscli:\n")