Skip to content

Commit

Permalink
Link to the run at the bottom of local preview output (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmik authored May 29, 2023
1 parent b512ca8 commit 318bf52
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/cmd/stack/local_preview.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,12 @@ func localPreview() cli.ActionFunc {

fmt.Println("You have successfully created a local preview run!")

fmt.Println("The live run can be visited at", authenticated.Client.URL(
linkToRun := authenticated.Client.URL(
"/stack/%s/run/%s",
stackID,
triggerMutation.RunProposeLocalWorkspace.ID,
))
)
fmt.Println("The live run can be visited at", linkToRun)

if cliCtx.Bool(flagNoTail.Name) {
return nil
Expand All @@ -130,6 +131,8 @@ func localPreview() cli.ActionFunc {
return err
}

fmt.Println("View full logs at", linkToRun)

return terminal.Error()
}
}
Expand Down

0 comments on commit 318bf52

Please sign in to comment.