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.
Proposed to format objects as table for output:
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.