Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmd/benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func getPipelineCommand() *cobra.Command {
Use: "pipeline",
Short: "Run pipeline benchmarks",
Long: "Run pipeline benchmarks for the package",
Args: cobra.NoArgs,
RunE: pipelineCommandAction,
}

Expand Down Expand Up @@ -212,6 +213,7 @@ func getSystemCommand() *cobra.Command {
Use: "system",
Short: "Run system benchmarks",
Long: "Run system benchmarks for the package",
Args: cobra.NoArgs,
RunE: systemCommandAction,
}

Expand Down Expand Up @@ -338,6 +340,7 @@ func getGenerateCorpusCommand() *cobra.Command {
Use: "generate-corpus",
Short: "Generate benchmarks corpus data for the package",
Long: generateLongDescription,
Args: cobra.NoArgs,
RunE: generateDataStreamCorpusCommandAction,
}

Expand Down
1 change: 1 addition & 0 deletions cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func setupBuildCommand() *cobraext.Command {
Use: "build",
Short: "Build the package",
Long: buildLongDescription,
Args: cobra.NoArgs,
RunE: buildCommandAction,
}
cmd.Flags().Bool(cobraext.BuildZipFlagName, true, cobraext.BuildZipFlagDescription)
Expand Down
1 change: 1 addition & 0 deletions cmd/changelog.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func setupChangelogCommand() *cobraext.Command {
Use: "add",
Short: "Add an entry to the changelog file",
Long: changelogAddLongDescription,
Args: cobra.NoArgs,
RunE: changelogAddCmd,
}
addChangelogCmd.Flags().String(cobraext.ChangelogAddNextFlagName, "", cobraext.ChangelogAddNextFlagDescription)
Expand Down
1 change: 1 addition & 0 deletions cmd/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func setupCheckCommand() *cobraext.Command {
Use: "check",
Short: "Check the package",
Long: checkLongDescription,
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := cobraext.ComposeCommands(args,
setupFormatCommand(),
Expand Down
1 change: 1 addition & 0 deletions cmd/clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func setupCleanCommand() *cobraext.Command {
Use: "clean",
Short: "Clean used resources",
Long: cleanLongDescription,
Args: cobra.NoArgs,
RunE: cleanCommandAction,
}

Expand Down
2 changes: 2 additions & 0 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ func setupCreateCommand() *cobraext.Command {
Use: "package",
Short: "Create new package",
Long: createPackageLongDescription,
Args: cobra.NoArgs,
RunE: createPackageCommandAction,
}

createDataStreamCmd := &cobra.Command{
Use: "data-stream",
Short: "Create new data stream",
Long: createDataStreamLongDescription,
Args: cobra.NoArgs,
RunE: createDataStreamCommandAction,
}

Expand Down
2 changes: 2 additions & 0 deletions cmd/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func setupDumpCommand() *cobraext.Command {
Use: "installed-objects",
Short: "Dump objects installed in the stack",
Long: dumpInstalledObjectsLongDescription,
Args: cobra.NoArgs,
RunE: dumpInstalledObjectsCmdAction,
}
dumpInstalledObjectsCmd.Flags().Bool(cobraext.TLSSkipVerifyFlagName, false, cobraext.TLSSkipVerifyFlagDescription)
Expand All @@ -45,6 +46,7 @@ func setupDumpCommand() *cobraext.Command {
Use: "agent-policies",
Short: "Dump agent policies defined in the stack",
Long: dumpAgentPoliciesLongDescription,
Args: cobra.NoArgs,
RunE: dumpAgentPoliciesCmdAction,
}
dumpAgentPoliciesCmd.Flags().StringP(cobraext.AgentPolicyFlagName, "", "", cobraext.AgentPolicyDescription)
Expand Down
1 change: 1 addition & 0 deletions cmd/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func setupExportCommand() *cobraext.Command {
Use: "dashboards",
Short: "Export dashboards from Kibana",
Long: exportDashboardsLongDescription,
Args: cobra.NoArgs,
RunE: exportDashboardsCmd,
}
exportDashboardCmd.Flags().StringSliceP(cobraext.DashboardIDsFlagName, "d", nil, cobraext.DashboardIDsFlagDescription)
Expand Down
1 change: 1 addition & 0 deletions cmd/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func setupFormatCommand() *cobraext.Command {
Use: "format",
Short: "Format the package",
Long: formatLongDescription,
Args: cobra.NoArgs,
RunE: formatCommandAction,
}
cmd.Flags().BoolP(cobraext.FailFastFlagName, "f", false, cobraext.FailFastFlagDescription)
Expand Down
1 change: 1 addition & 0 deletions cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func setupInstallCommand() *cobraext.Command {
Use: "install",
Short: "Install the package",
Long: installLongDescription,
Args: cobra.NoArgs,
RunE: installCommandAction,
}
cmd.Flags().StringSliceP(cobraext.CheckConditionFlagName, "c", nil, cobraext.CheckConditionFlagDescription)
Expand Down
1 change: 1 addition & 0 deletions cmd/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func setupLintCommand() *cobraext.Command {
Use: "lint",
Short: "Lint the package",
Long: lintLongDescription,
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := cobraext.ComposeCommandActions(cmd, args,
lintCommandAction,
Expand Down
1 change: 1 addition & 0 deletions cmd/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func getBenchReportCommand() *cobra.Command {
Use: "benchmark",
Short: "Generate a benchmark report",
Long: "Generate a benchmark report comparing local results against ones from another benchmark run.",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
cmd.Printf("Generate benchmark reports\n")

Expand Down
1 change: 1 addition & 0 deletions cmd/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func setupServiceCommand() *cobraext.Command {
upCommand := &cobra.Command{
Use: "up",
Short: "Boot up the stack",
Args: cobra.NoArgs,
RunE: upCommandAction,
}
upCommand.Flags().StringP(cobraext.DataStreamFlagName, "d", "", cobraext.DataStreamFlagDescription)
Expand Down
1 change: 1 addition & 0 deletions cmd/testrunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func setupTestCommand() *cobraext.Command {
Use: string(testType),
Short: fmt.Sprintf("Run %s tests", runner.String()),
Long: fmt.Sprintf("Run %s tests for the package.", runner.String()),
Args: cobra.NoArgs,
RunE: action,
}

Expand Down
1 change: 1 addition & 0 deletions cmd/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func setupUninstallCommand() *cobraext.Command {
Use: "uninstall",
Short: "Uninstall the package",
Long: uninstallLongDescription,
Args: cobra.NoArgs,
RunE: uninstallCommandAction,
}

Expand Down
1 change: 1 addition & 0 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func setupVersionCommand() *cobraext.Command {
Use: "version",
Short: "Show application version",
Long: versionLongDescription,
Args: cobra.NoArgs,
RunE: versionCommandAction,
}

Expand Down