From b139860e5a1fc75e625a7b53db8643b1e42f8d79 Mon Sep 17 00:00:00 2001 From: Erik Seliger Date: Fri, 14 Feb 2020 14:30:28 +0100 Subject: [PATCH] Add link for update workflow (#122) --- cmd/src/format.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/src/format.go b/cmd/src/format.go index d5c0184a6e..8b421d3414 100644 --- a/cmd/src/format.go +++ b/cmd/src/format.go @@ -98,11 +98,14 @@ func parseTemplate(text string) (*template.Template, error) { "friendlyCampaignPlanCreatedMessage": func(campaignPlan CampaignPlan) string { var buf bytes.Buffer fmt.Fprintln(&buf) - fmt.Fprintln(&buf, color.HiGreenString("✔ Campaign plan saved."), "To preview and run the campaign (and create branches and changesets):") + fmt.Fprintln(&buf, color.HiGreenString("✔ Campaign plan saved."), "\n\nTo preview and run the campaign (and create branches and changesets):") fmt.Fprintln(&buf) fmt.Fprintln(&buf, " ", color.HiCyanString("▶ Web:"), campaignPlan.PreviewURL, color.HiBlackString("or")) cliCommand := fmt.Sprintf("src campaigns create -plan=%s -branch=DESIRED-BRANCH-NAME", campaignPlan.ID) fmt.Fprintln(&buf, " ", color.HiCyanString("▶ CLI:"), cliCommand) + + fmt.Fprintln(&buf, "\nTo update an existing campaign using this campaign plan:") + fmt.Fprintln(&buf, "\n ", color.HiCyanString("▶ Web:"), strings.Replace(campaignPlan.PreviewURL, "/new", "/update", 1)) return buf.String() },