ockam icon indicating copy to clipboard operation
ockam copied to clipboard

feat(rust): improvements for commands' output to standardize their formatting

Open adrianbenavides opened this issue 9 months ago • 0 comments

Output changes

  • list commands: I've removed the header that was shown in a box. These commands now print the items without any header
  • tcp-inlet|outlet create: I changed the formatting of the output to use a "narrative" format, instead of showing a list of values.
  • I extended the docs for some arguments (global arguments and command specific arguments)
  • All arguments that have json output now print the json struct in a single line (the pretty-print can be done with jq if the user needs it)

image

Fixes

  • tcp-inlet|outlet create: the allow argument was set as positional, and it should be a named argument. I also changed the alias to match the arg name we use at policy create (expression instead of policy_expression)

adrianbenavides avatar May 09 '24 16:05 adrianbenavides