Skip to content

Commit

Permalink
curl script example fix (#570)
Browse files Browse the repository at this point in the history
* curl script example fix

Signed-off-by: Jasmin Gacic <jasmin.gacic@gmail.com>

* Added 'script' alias to 'scripts' subcommand

Signed-off-by: Jasmin Gacic <jasmin.gacic@gmail.com>
  • Loading branch information
jasmingacic authored Nov 22, 2021
1 parent bd118e8 commit 0051fe8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions cmd/kubectl-testkube/commands/scripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ var (

func NewScriptsCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "scripts",
Short: "Scripts management commands",
Long: `All available scripts and scripts executions commands`,
Use: "scripts",
Aliases: []string{"script"},
Short: "Scripts management commands",
Long: `All available scripts and scripts executions commands`,
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
},
Expand Down
2 changes: 1 addition & 1 deletion docs/executor-curl.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ TestKube is able to run curl commands as tests, there are 2 possibilities to val
"-H",
"'Accept: application/json'"
],
"expected_status": 200,
"expected_status": "200",
"expected_body": "{\"success\":\"true\"}"
}
```
Expand Down

0 comments on commit 0051fe8

Please sign in to comment.