Skip to content

Commit

Permalink
Add link for update workflow (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
eseliger authored Feb 14, 2020
1 parent ec72b49 commit b139860
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/src/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
},

Expand Down

0 comments on commit b139860

Please sign in to comment.