Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronoff97 committed Dec 8, 2023
1 parent 93c463e commit c073ebb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion cmd/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,18 @@ var (
}
)

func getValidChecks() string {
toReturn := "check ["
for k := range availableChecks {
toReturn = toReturn + k + "|"
}
toReturn = toReturn + "]"
return toReturn
}

// checkCmd represents the check command
var checkCmd = &cobra.Command{
Use: "check [metrics|tracing|preflight|inflight|all]",
Use: getValidChecks(),
Short: "Check can run one of multiple checks, use -h for more",
Args: func(cmd *cobra.Command, args []string) error {
if len(args) == 0 {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/lightstep/collector-cluster-check

go 1.20
go 1.21

require (
github.com/jedib0t/go-pretty/v6 v6.4.6
Expand Down

0 comments on commit c073ebb

Please sign in to comment.