Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable interactive prompts #7

Closed
simonw opened this issue Apr 7, 2020 · 3 comments
Closed

Disable interactive prompts #7

simonw opened this issue Apr 7, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Apr 7, 2020

I upgraded from now cli 15 to now cli 17 and it's started asking me interactive questions during each deploy.

$ datasette publish now2 ../datasette/fixtures.db --title="Datasette Fixtures" --project=datasette-fixtures
Now CLI 17.1.1
? Set up and deploy “/private/var/folders/bl/5x847xbj2yb7xmp7f2tz7l280000gn/T/tmpnh5u9bys/datasette-now-v2”? [Y/n] y
? Which scope do you want to deploy to? simonw
? Found project “simonw/datasette-fixtures”. Link to it? [Y/n] y
🔗  Linked to simonw/datasette-fixtures (created .now and added it to .gitignore)
❗️  The `name` property in now.json is deprecated (https://zeit.ink/5F)
🔍  Inspect: https://zeit.co/simonw/datasette-fixtures/ciymmquh0 [3s]
✅  Preview: https://datasette-fixtures.simonw.now.sh [copied to clipboard] [16s]
📝  To deploy to production (datasette-fixtures.now.sh), run `now --prod`
@simonw simonw added the enhancement New feature or request label Apr 7, 2020
@simonw
Copy link
Owner Author

simonw commented Apr 7, 2020

From now --help:

...
    -C, --no-clipboard             Do not attempt to copy URL to clipboard
    -S, --scope                    Set a custom scope
    --regions                      Set default regions to enable the deployment on
    --prod                         Create a production deployment
    -c, --confirm                  Confirm default options and skip questions

I'm going to add --confirm. I'll add --no-clipboard too since that keeps clearing things from my clipboard that I didn't want to lose.

@simonw
Copy link
Owner Author

simonw commented Apr 7, 2020

Having done that I get:

❗️  The `name` property in now.json is deprecated (https://zeit.ink/5F)
🔗  Linked to simonw/datasette-fixtures (created .now and added it to .gitignore)
🔍  Inspect: https://zeit.co/simonw/datasette-fixtures/ciymmquh0 [841ms]
✅  Preview: https://datasette-fixtures.simonw.now.sh [5s]
📝  To deploy to production (datasette-fixtures.now.sh), run `now --prod`

I'm going to default to using --prod. If people don't want that they can use a --no-prod option.

simonw added a commit that referenced this issue Apr 7, 2020
--prod can be disabled with --no-prod

Refs #7
@simonw
Copy link
Owner Author

simonw commented Apr 7, 2020

Still needs README updated.

@simonw simonw closed this as completed in f2e8450 Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant