Net::CLI::Interact::Transport::Loopback - Testable CLI connection

NAME  DECRIPTION  INTERFACE  app  runtime_options  COMPOSITION 

NAME

Net::CLI::Interact::Transport::Loopback − Testable CLI connection

DECRIPTION

This module provides a wrapped instance of Perl which simply echoes back any input provided. This is used for the Net::CLI::Interact test suite.

INTERFACE

app

Defaults to the value of $ˆX (that is, Perl itself).

runtime_options

Returns Perl options which turn it into a CLI emulator:

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

For example:

some command
some command
1301578196
PROMPT>

In this case the output command was "some command" which was echoed, followed by the dummy command output (epoch seconds), followed by a "prompt".

COMPOSITION

See the following for further interface details:

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


Updated 2024-01-29 - jenkler.se | uex.se