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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commander Rewrite #5

Merged
merged 4 commits into from Nov 11, 2022
Merged

Commander Rewrite #5

merged 4 commits into from Nov 11, 2022

Conversation

isaac-mcfadyen
Copy link
Owner

@isaac-mcfadyen isaac-mcfadyen commented Nov 11, 2022

This PR moves D1 Console from a DIY CLI implementation to commander, a popular Node.JS CLI framework.

Breaking changes:

  • Commands such as USE, SHOW DATABASES, and CREATE DATABASE have been moved to dedicated subcommands (see --help for more information).
  • Colors are back! 馃帀 (but can be disabled with the --no-colors flag if needed for any reason)
  • To choose the database to query, a new flag -d or --database is now used instead of the USE command inside the REPL.
  • If you wish to use D1 Console in CI/CD pipelines, the flag --execute can be used to immediately execute a command. In addition, D1 Console will now prefer CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN environment variables over the saved authentication (if any).

Closes #3
Closes #4

@isaac-mcfadyen isaac-mcfadyen merged commit 8dc26b8 into main Nov 11, 2022
@isaac-mcfadyen isaac-mcfadyen deleted the commander-rewrite branch November 11, 2022 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught ReferenceError: query is not defined on v1.2.6 Feature Request: d1-console login
1 participant