threefoldtecharchive / zosctl

zero-os container manager for zero-os operating system
Other
2 stars 1 forks source link

Simplify output #7

Closed zaibon closed 6 years ago

zaibon commented 6 years ago

I've seen the output of the zos command are most of the time the full dump of what 0-OS returns. In most cases that's too much information for the user. We should only print the minimal information to keep a clean and clear screen. If the user wants full detail we could had an inspect command or something like docker does.

Docker is a good example of the right balance, when you list your containers, it only print the minimal useful information about them : ID, Image, created data, status, ports forwards, name. In our case not everything is the same as docker but we can pick the useful information too and print it in a nice way.

xmonader commented 6 years ago

fixed default usage will show table for container info and lots of improvements on the messages shown to user thanks to @maxux

selection_041 and --json parameter will show output as json

Dina-Abd-Elrahman commented 6 years ago

ZOS Version:

c88753bb25cad433b416929593eee99598a3d7d2

Verification steps:

zos