keisku / kubectl-explore

A better kubectl explain with the fuzzy finder
MIT License
356 stars 12 forks source link

Show `[]` in path, if entry is a list. #44

Open guettli opened 1 week ago

guettli commented 1 week ago

kubectl-explore shows me this path:

deployments.spec.template.spec.containers.terminationMessagePath

I know that below "containers" a list is required. It would be nice to make this more obvious, because for custom CRDs I don't always know that.

The output of gron uses [] to indicate that.

What about showing this path, if a list is required?

deployments.spec.template.spec.containers[].terminationMessagePath
keisku commented 5 days ago

@guettli

Thank you for your feedback! I would like to add --show-brackets (false by default) to show [] in the path.

keisku commented 5 hours ago

@guettli Can you check the GIF in the #45 ? Is the behavior that you want?