wasmCloud / wasmCloud

wasmCloud allows for simple, secure, distributed application development using WebAssembly components and capability providers.
https://wasmcloud.com
Apache License 2.0
1.33k stars 126 forks source link

[FEATURE] `wash get inventory` output is unreadable #2398

Open brooksmtownsend opened 2 weeks ago

brooksmtownsend commented 2 weeks ago

Affected project(s)

Is your feature request related to a problem? Please describe.

Looking at the inventory of hosts is one of the most common operations for wash. However, when using file references or long generated component IDs, it becomes pretty unreadable. image image

Taking a look at other infrastructure tools, like kubectl and nomad, none of them quite overflow the terminal like wash. I think this is largely due to the fidelity of information, and with wash displaying the full image reference really just isn't quite necessary.

Describe the solution you'd like

I would love for the host inventory to display just the right amount of information for the human readable format. Just like kubernetes, we can hide all of the other information behind the json flag for when it's necessary. image

I propose that the host inventory display the following information:

I could even be convinced to drop the friendly name / host labels for the inventory operation, but it can be useful at a glance to verify that, for example, your application is spread properly across availability zones.

Describe alternatives you've considered

Additional context

No response

ossfellow commented 1 week ago

I can take this; please assign it to me.

ossfellow commented 1 week ago

Hello @brooksmtownsend, Does this look okay? If it does, then, I'll create the PR; otherwise let me know of any other improvements you'd like to see:

image

brooksmtownsend commented 1 week ago

@ossfellow this looks wonderful! 😲