-
Notifications
You must be signed in to change notification settings - Fork 186
Description
(Written by @mythmon)
Selecting a project, or defining the details of a newly created project, should not require hand-editing the observable.config.ts file.
There have been two proposals for how to do this:
- Direct users to the web to interact with project creation/selection UI
- Build a nice UI on the CLI that walks users through the process
The web UI sounds nice in some cases, and gives us a lot of integration with the rest of the flow (like automatic authentication, and other niceties), but recent experience with the authentication system has shown us that communicating from the browser to the CLI is hard to do reliably.
Instead I suggest we stay entirely on the CLI, with the exception of observable login. There are a lot of tools that we can draw inspiration from (such as Cloudflare's Wrangler and Github's gh). We might continue to roll our own, or use a library like . Per #606 lets use prompts (used in Create), enquirer, inquirer, or @clack/prompts.@clack/prompts.
I don't think we should use a more opinionated library like ink.