hookdeck / hookdeck-cli

Alternative to ngrok for localhost asynchronous web development (e.g. webhooks). No account required.
https://hookdeck.com?ref=github-hookdeck-cli
Apache License 2.0
260 stars 9 forks source link

UX issues around local configuration & projects management #88

Open alexluong opened 2 months ago

alexluong commented 2 months ago

Hi there, I've been tinkering with some DX around local config and discovered some undesirable behaviors. I made a few videos here to showcase these issues in hope we can discuss and improve the CLI.

The first video is on some issues with projects and confusing messages when there's a local configuration. There's also an issue during the logout flow as well: https://share.cleanshot.com/CW0f4lQQ

The second video focuses on project switching behavior: https://share.cleanshot.com/DYKVjc5P

Let me know what you think and happy to discuss or clarify things further.

alexbouchardd commented 1 month ago

To me it sounds like there shouldn't be inheritance from the local config to the global config. It's either one or the other?

alexluong commented 1 month ago

Hmm how do you decide which we should use? So if there exists a local config, we'll disregard the global config altogether?

alexbouchardd commented 1 month ago

Yes it's a precedence model. If you want to specify then you'd use --config

alexluong commented 1 month ago

Got it! cc @leggetter so you're on the same page. Let me know if you'd like me to move forward and implement this change. Doesn't seem like a huge change, should probably be an hour or two, I think.

leggetter commented 1 month ago

Got it! cc @leggetter so you're on the same page. Let me know if you'd like me to move forward and implement this change. Doesn't seem like a huge change, should probably be an hour or two, I think.

@alexluong go for it 👍🏻