viur-framework / viur-cli

Command-line interface for managing and developing ViUR
MIT License
4 stars 6 forks source link

`viur deploy app` should accept for `-y` parameter to avoid annoying prompts #82

Closed phorward closed 9 months ago

phorward commented 10 months ago

The interactive prompts are annoying and sometimes disturb development flow. I always have to answer these two stupid and annoying questions... I just want to avoid it.

Now:

$ viur deploy app live
✔ No vulnerabilities found.
Do you want to regenerate the requirements.txt located in the ./deploy? [y/N]: 
Services to deploy:

descriptor:                  [/home/neo/xxx/yyy/deploy/app.yaml]
source:                      [/home/neo/xxx/yyy/deploy]
target project:              [yyy]
target service:              [default]
target version:              [2023-11-22-neo]
target url:                  [http://2023-11-22-neo.yyy.ey.r.appspot.com]
target service account:      [yyy@appspot.gserviceaccount.com]

     (add --promote if you also want to make this service available from
     [http://yyy.ey.r.appspot.com])

Do you want to continue (Y/n)?

Wish:

$ viur deploy app live -y
✔ No vulnerabilities found.
requirements.txt successfully generated
Services to deploy:

descriptor:                  [/home/neo/xxx/yyy/deploy/app.yaml]
source:                      [/home/neo/xxx/yyy/deploy]
target project:              [yyy]
target service:              [default]
target version:              [2023-11-22-neo]
target url:                  [http://2023-11-22-neo.yyy.ey.r.appspot.com]
target service account:      [yyy@appspot.gserviceaccount.com]

     (add --promote if you also want to make this service available from
     [http://yyy.ey.r.appspot.com])

Beginning deployment of service [default]...
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 12 files to Google Cloud Storage               ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
Updating service [default]...done.                                             
Deployed service [default] to [http://2023-11-22-neo.yyy.ey.r.appspot.com]

You can stream logs from the command line by running:
  $ gcloud app logs tail -s default

To view your application in the web browser run:
  $ gcloud app browse --project=yyy

Note: The parameter can also be other than -y, I just want this feature.

sveneberth commented 10 months ago

As workaround I use :see_no_evil:

echo N | viur deploy app develop -q
Grashalmbeisser commented 9 months ago

Is implemented with PR: https://github.com/viur-framework/viur-cli/pull/90