Skip to content

Commit b139860

Browse files
authored
Add link for update workflow (#122)
1 parent ec72b49 commit b139860

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/src/format.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,14 @@ func parseTemplate(text string) (*template.Template, error) {
9898
"friendlyCampaignPlanCreatedMessage": func(campaignPlan CampaignPlan) string {
9999
var buf bytes.Buffer
100100
fmt.Fprintln(&buf)
101-
fmt.Fprintln(&buf, color.HiGreenString("✔ Campaign plan saved."), "To preview and run the campaign (and create branches and changesets):")
101+
fmt.Fprintln(&buf, color.HiGreenString("✔ Campaign plan saved."), "\n\nTo preview and run the campaign (and create branches and changesets):")
102102
fmt.Fprintln(&buf)
103103
fmt.Fprintln(&buf, " ", color.HiCyanString("▶ Web:"), campaignPlan.PreviewURL, color.HiBlackString("or"))
104104
cliCommand := fmt.Sprintf("src campaigns create -plan=%s -branch=DESIRED-BRANCH-NAME", campaignPlan.ID)
105105
fmt.Fprintln(&buf, " ", color.HiCyanString("▶ CLI:"), cliCommand)
106+
107+
fmt.Fprintln(&buf, "\nTo update an existing campaign using this campaign plan:")
108+
fmt.Fprintln(&buf, "\n ", color.HiCyanString("▶ Web:"), strings.Replace(campaignPlan.PreviewURL, "/new", "/update", 1))
106109
return buf.String()
107110
},
108111

0 commit comments

Comments
 (0)