diff --git a/cmd/tink-cli/cmd/template/update.go b/cmd/tink-cli/cmd/template/update.go index 48f5b57c2..255e1a4b1 100644 --- a/cmd/tink-cli/cmd/template/update.go +++ b/cmd/tink-cli/cmd/template/update.go @@ -18,7 +18,7 @@ import ( var updateCmd = &cobra.Command{ Use: "update [id] [flags]", Short: "update a workflow template", - Long: `The update command allows you change the definition of an existing workflow template : + Long: `The update command allows you change the definition of an existing workflow template: # Update an existing template: $ tink template update 614168df-45a5-11eb-b13d-0242ac120003 --file /tmp/example.tmpl diff --git a/cmd/tink-cli/cmd/template_test.go b/cmd/tink-cli/cmd/template_test.go index fdddcb82d..a78a18c7f 100644 --- a/cmd/tink-cli/cmd/template_test.go +++ b/cmd/tink-cli/cmd/template_test.go @@ -61,8 +61,8 @@ func Test_templateCmd(t *testing.T) { if err := root.Execute(); err != nil { t.Error(err) } - if !strings.Contains(out.String(), "create a workflow template") { - t.Error("expected output should include create a workflow template") + if !strings.Contains(out.String(), "Create template using the --file flag") { + t.Error("expected output should include \"Create template using the --file flag\"") } }, }, @@ -112,8 +112,8 @@ func Test_templateCmd(t *testing.T) { if err := root.Execute(); err != nil { t.Error(err) } - if !strings.Contains(out.String(), "update a template") { - t.Error("expected output should include update a template") + if !strings.Contains(out.String(), "Update an existing template") { + t.Error("expected output should include \"Update an existing template\"") } }, },