@@ -3,6 +3,7 @@ package action
33import (
44 "errors"
55 "fmt"
6+ "time"
67
78 "bunnyshell.com/cli/pkg/api/common"
89 "bunnyshell.com/cli/pkg/api/component/endpoint"
@@ -58,7 +59,7 @@ func HandleDeploy(cmd *cobra.Command, deployOptions *environment.DeployOptions,
5859 return lib .FormatCommandData (cmd , event )
5960 }
6061
61- if err = processEventPipeline (cmd , event , "deploy" , printLogs ); err != nil {
62+ if err = processEventPipeline (cmd , event , "deploy" , printLogs , deployOptions . Interval ); err != nil {
6263 if printLogs {
6364 cmd .Printf ("\n Environment %s deploying failed\n " , deployOptions .ID )
6465 }
@@ -120,8 +121,11 @@ func ensureKubernetesIntegration(deployOptions *environment.DeployOptions, kuber
120121 return err
121122}
122123
123- func processEventPipeline (cmd * cobra.Command , event * sdk.EventItem , action string , printLogs bool ) error {
124+ func processEventPipeline (cmd * cobra.Command , event * sdk.EventItem , action string , printLogs bool , interval time. Duration ) error {
124125 progressOptions := progress .NewOptions ()
126+ if interval != 0 {
127+ progressOptions .Interval = interval
128+ }
125129
126130 if printLogs {
127131 cmd .Printf (
@@ -150,7 +154,7 @@ func processEventPipeline(cmd *cobra.Command, event *sdk.EventItem, action strin
150154 }
151155 }
152156
153- if err = progress .Pipeline (pipeline .GetId (), nil ); err != nil {
157+ if err = progress .Pipeline (pipeline .GetId (), progressOptions ); err != nil {
154158 return err
155159 }
156160
0 commit comments