From 6d63b0cb90aa4862b6ee5f5167eaf31bc6612b6e Mon Sep 17 00:00:00 2001 From: Jacek Wysocki Date: Sat, 12 Feb 2022 00:37:15 +0100 Subject: [PATCH] fix: renaming --- cmd/kubectl-testkube/commands/testsuites/create.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/kubectl-testkube/commands/testsuites/create.go b/cmd/kubectl-testkube/commands/testsuites/create.go index c7bb7d0be2f..ac636b1f580 100644 --- a/cmd/kubectl-testkube/commands/testsuites/create.go +++ b/cmd/kubectl-testkube/commands/testsuites/create.go @@ -23,8 +23,8 @@ func NewCreateTestSuitesCmd() *cobra.Command { cmd := &cobra.Command{ Use: "create", Aliases: []string{"c"}, - Short: "Create new test", - Long: `Create new Test Custom Resource, `, + Short: "Create new test suite", + Long: `Create new TestSuite Custom Resource, `, Run: func(cmd *cobra.Command, args []string) { ui.Logo() @@ -53,19 +53,19 @@ func NewCreateTestSuitesCmd() *cobra.Command { test, _ := client.GetTestSuite(options.Name, options.Namespace) if options.Name == test.Name { - ui.Failf("Test with name '%s' already exists in namespace %s", options.Name, options.Namespace) + ui.Failf("TestSuite with name '%s' already exists in namespace %s", options.Name, options.Namespace) } options.Tags = tags test, err = client.CreateTestSuite((apiClient.UpsertTestSuiteOptions(options))) - ui.ExitOnError("creating test "+options.Name+" in namespace "+options.Namespace, err) - ui.Success("Test created", options.Name) + ui.ExitOnError("creating TestSuite "+options.Name+" in namespace "+options.Namespace, err) + ui.Success("TestSuite created", options.Name) }, } - cmd.Flags().StringVarP(&file, "file", "f", "", "JSON test file - will be read from stdin if not specified, look at testkube.TestUpsertRequest") - cmd.Flags().StringVar(&name, "name", "", "Set/Override test name") + cmd.Flags().StringVarP(&file, "file", "f", "", "JSON test suite file - will be read from stdin if not specified, look at testkube.TestUpsertRequest") + cmd.Flags().StringVar(&name, "name", "", "Set/Override test suite name") cmd.Flags().StringSliceVar(&tags, "tags", nil, "comma separated list of tags: --tags tag1,tag2,tag3") return cmd