@@ -526,7 +526,7 @@ func (c *DeployCommand) NewService(manifestFilename string, spinner text.Spinner
526
526
// There is no service and so we'll do a one time creation of the service
527
527
//
528
528
// NOTE: we're shadowing the `serviceID` and `serviceVersion` variables.
529
- serviceID , serviceVersion , err = createService (c .Globals , serviceName , spinner , out )
529
+ serviceID , serviceVersion , err = createService (c .Globals , serviceName , spinner , in , out )
530
530
if err != nil {
531
531
c .Globals .ErrLog .AddWithContext (err , map [string ]any {
532
532
"Service name" : serviceName ,
@@ -556,7 +556,7 @@ func (c *DeployCommand) NewService(manifestFilename string, spinner text.Spinner
556
556
}
557
557
558
558
// createService creates a service to associate with the compute package.
559
- func createService (g * global.Data , serviceName string , spinner text.Spinner , out io.Writer ) (serviceID string , serviceVersion * fastly.Version , err error ) {
559
+ func createService (g * global.Data , serviceName string , spinner text.Spinner , in io. Reader , out io.Writer ) (serviceID string , serviceVersion * fastly.Version , err error ) {
560
560
f := g .Flags
561
561
apiClient := g .APIClient
562
562
errLog := g .ErrLog
@@ -608,6 +608,13 @@ func createService(g *global.Data, serviceName string, spinner text.Spinner, out
608
608
609
609
if ! epr .HasAccess {
610
610
text .Info (out , "\n " + undocumented .EntitledProductMessageCompute + "\n \n " )
611
+ cont , err := text .AskYesNo (out , "Are you sure you want to continue? [y/N]: " , in )
612
+ if err != nil {
613
+ return "" , nil , err
614
+ }
615
+ if ! cont {
616
+ return "" , nil , fsterr .ErrComputeTrialStopped
617
+ }
611
618
}
612
619
613
620
err = spinner .Start ()
0 commit comments