Net::C...oopback(3pm)

πŸ“¦
version 2.400002 Β· 6 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸŽ€ NAME πŸŽ€

okay bestie, gather round πŸ’– this is the manual page for Net::CLI::Interact::Transport::Loopback β€” your little Testable CLI connection, hanging out in section 3pm like the icon it is ✨


πŸ¦‹ DECRIPTION πŸ¦‹

(no because the heading really is spelled that way and I'm not gonna gaslight you πŸ™ˆ)

So like β€” this module hands you a wrapped instance of Perl that literally just echoes back whatever you throw at it. That's it. That's the whole vibe. πŸͺžπŸ’¬

And why would you want a Perl that just parrots you back? Because it's the plug for the Net::CLI::Interact test suite, babes. It's the fake CLI so your real CLI code can go off without ever touching an actual device πŸ”₯


πŸ’… INTERFACE πŸ’…

πŸ“ app

Defaults to the value of $^X β€” which is, and I cannot stress this enough, Perl itself πŸͺ periodt.

🌸 runtime_options

Returns Perl options that turn the whole thing into a CLI emulator, no cap:

-ne 'BEGIN { $| = 1 }; print $_, time, "\nPROMPT>\n";'

For example, say you send this:

some command
some command
1301578196
PROMPT>

So in this case the output command was "some command" β€” which got echoed back at you β€” followed by the dummy command output (epoch seconds, hello 1301578196 πŸ‘‹) and then finally a "prompt" to close it out. Chef's kiss, it's giving full fake-terminal fantasy 🧚✨


πŸ‘‘ COMPOSITION πŸ‘‘

Wanna know more about how this thing is wired together? See the following for further interface details, iykyk:

  • Net::CLI::Interact::Transport::Base

and that's the whole page, bestie 🫢 go forth and loop back πŸ’œ

signing off cutely: this was perl v5.36.0, dated 2023-10-28, and the page is Net::C...oopback(3pm) β€” mwah πŸ’‹

πŸ“¦ where this page comes from