NAME

App::karr::Role::CompactOutput - Role providing the --compact output option

VERSION

version 0.600

DESCRIPTION

Declares --compact, the terse plaintext rendering, for the commands that actually render one. It is composed by exactly nine commands: board, config, context, dashboard, list, log, metrics, pick and show.

--compact used to sit beside --json in App::karr::Role::Output, which every command with an alternate rendering composes, so all twenty-two of them advertised --compact: Compact output in --help while only a handful read the option. On the other thirteen it was accepted and silently thrown away, and an option that is documented, accepted and then ignored is an answer that looks like obedience (#254 has the census; #225 and #226 are the same failure on other options). Splitting the option out of that role is what makes karr move 1 done --compact answer Unknown option: compact with the usage and exit 2, which is the loud refusal the exit-code contract (ADR 0002) asks for.

--json stays in App::karr::Role::Output and keeps its own consumers: the two options are separate questions, and a command may well answer one and not the other. Where both are composed, --json wins -- the machine-readable rendering is a payload, not a layout, so it is never reshaped by --compact.

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/karr/issues.

IRC

Join #langertha on irc.perl.org or message Getty directly.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <getty@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)