NAME

App::karr::Role::Output - Role providing common output format options

VERSION

version 0.400

DESCRIPTION

Small role that adds shared output options for commands with alternate renderings and provides a JSON printer used throughout the CLI.

$self->print_json_results(@results);

Emits a batch of per-item result hashes as JSON when --json is active, and is a no-op otherwise. A single result is rendered as a bare JSON object and multiple results as a JSON array, matching the output convention shared by the move, edit, delete, and archive commands.

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; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.