Skip to content

Commit

Permalink
commands: update examples
Browse files Browse the repository at this point in the history
Add `testops` command to each examples
  • Loading branch information
gibiw committed Jun 7, 2024
1 parent 7137d87 commit f6ff267
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/testops/result/upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func Command() *cobra.Command {
cmd := &cobra.Command{
Use: "upload",
Short: "Upload test results",
Example: "qli result upload --path 'path' --format 'junit' --id 123 --project 'PRJ' --token 'TOKEN'",
Example: "qli testops result upload --path 'path' --format 'junit' --id 123 --project 'PRJ' --token 'TOKEN'",
RunE: func(cmd *cobra.Command, args []string) error {
const op = "upload"
logger := slog.With("op", op)
Expand Down
2 changes: 1 addition & 1 deletion cmd/testops/run/complete/complete.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func Command() *cobra.Command {
cmd := &cobra.Command{
Use: "complete",
Short: "Complete a test run",
Example: "qli run complete --id 123 --project 'PRJ' --token 'TOKEN'",
Example: "qli testops run complete --id 123 --project 'PRJ' --token 'TOKEN'",
RunE: func(cmd *cobra.Command, args []string) error {
token := viper.GetString(flags.TokenFlag)
project := viper.GetString(flags.ProjectFlag)
Expand Down
2 changes: 1 addition & 1 deletion cmd/testops/run/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func Command() *cobra.Command {
cmd := &cobra.Command{
Use: "create",
Short: "Create a new test run",
Example: "qli run create --title 'My test run' --description 'This is a test run' --environment local --project 'PRJ' --token 'TOKEN'",
Example: "qli testops run create --title 'My test run' --description 'This is a test run' --environment local --project 'PRJ' --token 'TOKEN'",
RunE: func(cmd *cobra.Command, args []string) error {
token := viper.GetString(flags.TokenFlag)
project := viper.GetString(flags.ProjectFlag)
Expand Down

0 comments on commit f6ff267

Please sign in to comment.