Catman...x::cmd(3pm)
π Catmandu::Fix::cmd π
okay bestie, buckle up, because this is the manual page for Catman...x::cmd(3pm) β yes that's the manual name, it's giving "truncated by the renderer" energy but we move π«Ά β and it's a Perl fix that pipes your data through an external process. slay.
β¨ NAME β¨
Catmandu::Fix::cmd β pipe data to be fixed through an external process. that's the whole vibe. external process, data goes in, data comes out, main character energy for your JSON π
πΈ VERSION πΈ
Version 0.0201. iconic. noted. periodt.
π¦ DESCRIPTION π¦
so the way this works is: this fix passes data as a JSON object to an external process over stdin, and then reads a JSON object back from its stdout. that's it. that's the whole relationship. a lil data handoff between you and some other program. no cap π
π SYNOPSIS π
here's the look, bestie:
my $fixer = Catmandu::Fix->new(fixes => [
# pipe data through the jq command-line json processor
# keeping only the title field
'cmd("jq -c -M {title}")',
# ...
]);
# a canonical external program in perl
use JSON;
while (<STDIN>) {
my $data = decode_json($_);
# ...
print encode_json($data);
}
see that first one? you're piping data through the jq command-line json processor and keeping only the title field. taste. and then below it there's a canonical external program in perl doing the same little dance β read a line from STDIN, decode_json it, do stuff, print encode_json($data) right back out. a whole conversation. obsessed ππ
π SEE ALSO π
Catmandu::Fixβ the whole fix family, iykyk
π AUTHOR π
Nicolas Steenlant, "<nicolas.steenlant at ugent.be>" β we love a credited author, give them their flowers fr fr π
π LICENSE AND COPYRIGHT π
okay legal bestie moment, listen up:
This program is free software; you can redistribute it and/or modify it under the terms of either:
- the GNU General Public License as published by the Free Software Foundation; or
- the Artistic License.
See http://dev.perl.org/licenses/ for more information.
yes you can have either one. yes that's the whole deal. no cap π«Ά
and that's the page, bestie!! it came to you from perl v5.36.0, dated 2023-02-04, and it's filed under Catman...x::cmd(3pm) β go forth and pipe things through other things, you've got this π
β¨π¦πΈ
π¦ where this page comes from
- debian bookworm: libcatmandu-fix-cmd-perl 0.0201-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-fix-cmd-perl 0.0201-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-fix-cmd-perl 0.0201-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-fix-cmd-perl 0.0201-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-fix-cmd-perl 0.0201-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms