Skip to content

Format objects as table by request #3

@adidik

Description

@adidik

Proposed to format objects as table for output:

@Command
@TableOutput({"name", "age"})
public Foo printFoo() {
   ...
}

class Foo {
      String name;
      int age;
}

The output will be:

+--------+-----+
| name | age|
+--------+-----+
| Ab | 12 |
+--------+-----+

Printed fields should be available throw fields or getter access.

It's possiible to list printed fields in the @TableOutpur annotation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions