tryabby / abby

Open-Source Feature Flags, Remote Config & A/B Tests for Developers ⛳🧪
https://www.tryabby.com
GNU Affero General Public License v3.0
143 stars 19 forks source link

[CLI] Improve Init Command #129

Open cstrnt opened 7 months ago

cstrnt commented 7 months ago

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:

Ekep-Obasi commented 7 months ago

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

cstrnt commented 7 months ago

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

cstrnt commented 6 months ago

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

Ekep-Obasi commented 6 months ago

@cstrnt , I've pinged you on discord