Skip to content

Commit

Permalink
Add a link to the Dashboard in output
Browse files Browse the repository at this point in the history
  • Loading branch information
janelletavares committed Nov 10, 2022
1 parent 0d259cc commit 0ab13a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/meroxa/root/apps/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ func (d *Deploy) Execute(ctx context.Context) error {
}

dashboardURL := fmt.Sprintf("https://dashboard.meroxa.io/apps/%s/detail", d.appName)
output := fmt.Sprintf("Application %q successfully deployed!\n\n ✨ To visualize your application visit %s",
output := fmt.Sprintf("Application %q successfully deployed!\n\n ✨ To visualize your application, visit %s",
d.appName, dashboardURL)

if d.flags.Verbose {
Expand Down
5 changes: 3 additions & 2 deletions cmd/meroxa/root/apps/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ package apps
import (
"context"

"github.com/meroxa/cli/utils/display"

"github.com/meroxa/cli/cmd/meroxa/builder"
"github.com/meroxa/cli/log"
"github.com/meroxa/cli/utils/display"
"github.com/meroxa/meroxa-go/pkg/meroxa"
)

Expand Down Expand Up @@ -70,6 +69,8 @@ func (l *List) Execute(ctx context.Context) error {
l.logger.JSON(ctx, apps)
l.logger.Info(ctx, display.AppsTable(apps, l.hideHeaders))

output := " ✨ To visualize your applications, visit https://dashboard.meroxa.io/apps"
l.logger.Info(ctx, output)
return nil
}

Expand Down

0 comments on commit 0ab13a7

Please sign in to comment.