storyblok-cli icon indicating copy to clipboard operation
storyblok-cli copied to clipboard

feat: user cmd

Open alvarosabu opened this issue 4 months ago • 0 comments

Hi, this is the new implementation of the user commands for the renovated version of the CLI. Is a followup from #118

Please make sure to check the previous PR before this one.

How to test this PR

  • Clone the repo and pull the branch
  • pnpm install
  • pnpm run build:stub <-- Important you test it with stub for now

Once build without issues

  • Use pnpm run dev user

Unit test

There are 2 Test files related to this command

You can run the tests:

pnpm run test

And coverage

pnpm run coverage

Testing checklist

I'm including the same manual testing checklist I used during TDD

User

storyblok-cli user

  • [ ] If user is logged should prompt a message like this Screenshot 2024-10-07 at 12 45 57
  • [ ] If user is not logged in should return You are not logged in. Please login first

alvarosabu avatar Oct 07 '24 10:10 alvarosabu