App::Cleo(3pm)
β¨ NAME β¨
App::Cleo β play back shell commands for live demonstrations π¬π
Like, it's a whole perl module (it lives in the App::Cleo(3pm) man page, bestie) that types out your shell commands for you on stage. Obsessed.
πΈ SYNOPSIS πΈ
use App::Cleo
my $cleo = App::Cleo->new(%options);
$cleo->run($commands);
That's it. That's the whole vibe. π«Ά
π¦ DESCRIPTION π¦
So here's the tea β β App::Cleo is the back-end for the cleo utility. The way that it's literally just the engine under the hood β¨. Please see the cleo documentation for details on how to use this. iykyk π
π CONSTRUCTOR π
The constructor accepts arguments as key-value pairs, so like App::Cleo->new(delay => 100, prompt => 'bestie> ') energy. π
The following keys are supported:
delayβ Number of milliseconds to wait before displaying each character of the command. Yep, per character, it's a whole slow-typing aesthetic π. The default is25_000. (That's the exact number, no cap, underscores and all.)promptβ String to use for the artificial prompt. The token%dwill be substituted with the number of the current command π’. The default is"(%d)$".shellβ Path to the shell command that will be used to run the commands π. Defaults to either theSHELLenvironment variable or/bin/bash.
π METHODS π
run( $commands )
Starts playback of commands βΆοΈβ¨. And here's the important part, so listen up: what you pass in changes everything about how it's read π«£
- If the argument is a string, it will be treated as a file name and commands will be read from the file π.
- If the argument is a scalar reference, it will be treated as a string of commands separated by newlines π.
- If the argument is an array reference, then each element of the array will be treated as a command π§Ί (one command per element, clean and iconic).
π AUTHOR π
Jeffrey Ryan Thalhammer <thaljef@cpan.org> π β a legend, fr fr.
π COPYRIGHT π
Copyright (c) 2014, Imaginative Software Systems π«Ά
okay and that's the whole page, bestie!! πβ¨ this little cutie ships as part of perl v5.40.1, dated 2025-12-10, and it's filed under the manual page App::Cleo(3pm) π go type some commands dramatically on a projector, you main character π¦π
π¦ where this page comes from
- ubuntu resolute: cleo 0.004-4build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: cleo 0.004-4build1 Β· 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