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

[CLI] Improve Init Command #129

Open
cstrnt opened this issue Apr 23, 2024 · 4 comments
Open

[CLI] Improve Init Command #129

cstrnt opened this issue Apr 23, 2024 · 4 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@cstrnt
Copy link
Member

cstrnt commented Apr 23, 2024

Problem
The current initcommand is quite basic and doesn't provide much value. It requires a lot of manual work and doesn't align with Abby's level of UX/DX

Solution:
The init command should provide a full hands-on experience. The shadcn CLI is a great example of that (reference).

Potential Workflow:

  1. User runs Abby init
  2. Ask for the location (should default to the current dir)
  3. If there is an abby.config.ts warn the user and abort.
  4. Get a list of all projects available for the signed-in user
  5. Show the user a list of all projects (select)
  6. Let the user select a project
  7. Fetch all existing items for the current project (environments, flags, remote configs, tests)
  8. Show the user an overview of the config that will be written to the file
  9. Allow the user to accept or cancel

Acceptance Criteria:

  • User errors are caught and displayed in a nice manner
  • the currentEnvironment field should be set to process.env.NODE_ENV by default
  • all existing data must be set for the projects
@cstrnt cstrnt added the good first issue Good for newcomers label Apr 23, 2024
@Ekep-Obasi
Copy link

Hi @cstrnt, I'll love to contribute. Can you assign this to me?

@cstrnt
Copy link
Member Author

cstrnt commented Apr 23, 2024

@Ekep-Obasi Sure thing! Thank you so much :) Feel free to always ask questions if you need help or join our Discord

@cstrnt
Copy link
Member Author

cstrnt commented Apr 29, 2024

Hey @Ekep-Obasi Is there anything you need assistance with?

@Ekep-Obasi
Copy link

@cstrnt , I've pinged you on discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants