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

Method NewCommand

cmd/crowdsec-cli/version.go:18–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func (cliVersion) NewCommand() *cobra.Command {
19 cmd := &cobra.Command{
20 Use: "version",
21 Short: "Display version",
22 Args: args.NoArgs,
23 DisableAutoGenTag: true,
24 Run: func(_ *cobra.Command, _ []string) {
25 _, _ = os.Stdout.WriteString(cwversion.FullString())
26 },
27 }
28
29 return cmd
30}

Callers

nothing calls this directly

Calls 1

FullStringFunction · 0.92

Tested by

no test coverage detected