MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / dumpVersion

Method dumpVersion

cmd/crowdsec-cli/clisupport/support.go:141–145  ·  view source on GitHub ↗
(zw *zip.Writer)

Source from the content-addressed store, hash-verified

139}
140
141func (cli *cliSupport) dumpVersion(zw *zip.Writer) {
142 fmt.Fprintln(os.Stdout, "Collecting version")
143
144 cli.writeToZip(zw, SUPPORT_VERSION_PATH, time.Now(), strings.NewReader(cwversion.FullString()))
145}
146
147func (cli *cliSupport) dumpFeatures(zw *zip.Writer) {
148 fmt.Fprintln(os.Stdout, "Collecting feature flags")

Callers 1

dumpMethod · 0.95

Calls 3

writeToZipMethod · 0.95
FullStringFunction · 0.92
NewReaderMethod · 0.80

Tested by

no test coverage detected