MooseX...le::Run(3pm)

πŸ“¦
version 0.10 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ’– MooseX::Runnable::Run πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation, and it's all about MooseX::Runnable::Run β€” the little helper that lets you yeet a MooseX::Runnable class straight into being a whole actual application. yes, like a real one. with exit codes and everything. slay.


✨ NAME ✨

MooseX::Runnable::Run β€” run a MooseX::Runnable class as an application πŸƒβ™€οΈπŸ’¨


🌸 VERSION 🌸

version 0.10


πŸŽ€ SYNOPSIS πŸŽ€

step one, babes: write an app 🫢

package MyApp;
use Moose; with 'MooseX::Runnable';
sub run { say 'Hello, world.'; return 0 } # (UNIX exit code)

then write a wrapper script called myapp.pl. if you want the sugar version (and honestly, who doesn't) it's giving:

#!/usr/bin/env perl
use MooseX::Runnable::Run 'MyApp';

or without the sugar, if you're feeling spicy:

#!/usr/bin/env perl
use MooseX::Runnable::Run;

run_application 'MyApp', @ARGV;

then boom β€” run your app πŸ”₯

$ ./myapp.pl
Hello, world.
$ echo $?
0

no cap, it just works like that.


πŸ’… DESCRIPTION πŸ’…

so this is a utility module (a lil helper, a sidekick, a robin to your batman) whose whole job is running a MooseX::Runnable class with MooseX::Runnable::Invocation. that's it. that's the vibe. it's the glue, it's the middle-manager of your Moose app, and it eats. πŸ“


πŸ” SEE ALSO πŸ”

  • mx-run β€” a whole script that will run your MooseX::Runnable apps for you, saving you valuable seconds. and bestie, seconds add up. that's main character energy right there. πŸ‘‘
  • MooseX::Runnable β€” the parent vibe, the whole reason we're here.

πŸ†˜ SUPPORT πŸ†˜

got bugs? don't suffer in silence, tell someone 😭


πŸ‘‘ AUTHOR πŸ‘‘

Jonathan Rockway <jrockway@cpan.org>


This software is copyright (c) 2009 by Jonathan Rockway.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. periodt. πŸ’–


and that's the whole page bestie, no notes, we ate πŸŽ€

<div align="center">perl v5.36.0 Β· 2022-12-11 Β· MooseX...le::Run(3pm) ✨ go run your app, you got this πŸ¦‹</div>

πŸ“¦ where this page comes from