Skip to content

Commit

Permalink
labctl challenges category - slightly adjust the help message
Browse files Browse the repository at this point in the history
  • Loading branch information
iximiuz committed Oct 22, 2024
1 parent 52c6c8e commit 33a6037
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/challenge/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ func newCatalogCommand(cli labcli.CLI) *cobra.Command {
var opts catalogOptions

cmd := &cobra.Command{
Use: "catalog [--category <linux|containers|kubernetes|...>] --status <todo|attempted|solved|...>",
Use: "catalog",
Aliases: []string{"catalog"},
Short: "List challenges from the catalog, optionally filtered by category",
Short: "List challenges from the catalog, optionally filtered by category and/or status",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
return labcli.WrapStatusError(runCatalogChallenges(cmd.Context(), cli, &opts))
Expand All @@ -35,14 +35,14 @@ func newCatalogCommand(cli labcli.CLI) *cobra.Command {
&opts.category,
"category",
[]string{},
`Category to filter by - one or multiple categories like linux, containers, kubernetes`,
`Category to filter by; multiple --category flags can be used. Valid categories: linux, containers, kubernetes, networking, programming, observability, security, ci-cd`,
)

flags.StringSliceVar(
&opts.status,
"status",
[]string{},
`status to filter by - one or multiple status like todo, attempted, solved)`,
`Status to filter by; multiple --status flags can be used. Valid statuses: todo, attempted, solved`,
)

return cmd
Expand Down

0 comments on commit 33a6037

Please sign in to comment.