Automattic / team51-cli

A tool for provisioning and connecting GitHub repos, Pressable WordPress sites and DeployHQ.
MIT License
12 stars 0 forks source link

Symfony autocomplete #217

Open ecairol opened 8 months ago

ecairol commented 8 months ago

WIP

ecairol commented 8 months ago

@ahegyes how do you feel about this. When the user writes a command and hits TAB, besides displaying the available options and arguments, to also offer the user a full written example with placeholders?

Screenshot 2024-02-05 at 10 55 14

-- At least on my Terminal the options are not selectable, and I think it could be useful to have a reference of the value types that can be used for each option, but I'm also having second thoughts about it.

ahegyes commented 8 months ago

how do you feel about this

I'm in favor of not doing that simply because I think it kinda clutters the terminal and I haven't seen it done anywhere else.

But I can see some value in it. However, is the example auto-generated or will that be another thing to remember to update if the options change? 🤔

ecairol commented 8 months ago

@ahegyes Yeah that's ok, it was an idea I had and wanted to hear opinions, but I wasn't 100% sold on it either. I haven't found a way to make it auto-generated so that's a con, it would need to be manually updated 👎

ecairol commented 7 months ago

@ahegyes some recent updates:

Would you mind testing when you have a chance?

ecairol commented 6 months ago

@fmfernandes since you're already familiar with this problem and its solution, would you mind taking a look at commit eae6cb4 and let me know if you see anything suspicious or have any suggestion or question?

ecairol commented 6 months ago

Thanks for those observations @fmfernandes, I've updated both cases here: c5978c9