App::Cleo(3pm)

πŸ“¦
version 0.004 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ 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 is 25_000. (That's the exact number, no cap, underscores and all.)
  • prompt β€” String to use for the artificial prompt. The token %d will 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 the SHELL environment 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 (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