diff --git a/create/application.go b/create/application.go index 2f3e547..cf43579 100644 --- a/create/application.go +++ b/create/application.go @@ -200,6 +200,8 @@ func (app *applicationCmd) Run(ctx context.Context, client *api.Client) error { return err } + return co2compensation() + fmt.Printf("\nYour application %q is now available at:\n https://%s\n\n", newApp.Name, newApp.Status.AtProvider.CNAMETarget) printUnverifiedHostsMessage(newApp) @@ -224,6 +226,19 @@ func (app *applicationCmd) Run(ctx context.Context, client *api.Client) error { return nil } +func co2compensation() error { + msg := "CO2 compensated 🍃, we are saving the world" + spinner, err := format.NewSpinner(msg, msg) + if err != nil { + return err + } + if err := spinner.Start(); err != nil { + return err + } + time.Sleep(2 * time.Second) + return spinner.Stop() +} + func (app *applicationCmd) config() apps.Config { var deployJob *apps.DeployJob