Skip to content

Commit

Permalink
fix(6235): added long description for the validate command
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanyalti committed Jan 16, 2025
1 parent 7ee581e commit 47afb60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/pkg/agent/cmd/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func newValidateCommandWithArgs(_ []string, _ *cli.IOStreams) *cobra.Command {
cmd := &cobra.Command{
Use: "validate",
Short: "Validates the OpenTelemetry collector configuration without running the collector",
Long: "Validates the OpenTelemetry collector configuration without running the collector. Validation will fail for otel-elastic hybrid configuration files. This command will return true for valid otel configurations only.",
SilenceUsage: true, // do not display usage on error
SilenceErrors: true,
RunE: func(cmd *cobra.Command, _ []string) error {
Expand Down

0 comments on commit 47afb60

Please sign in to comment.