Net::CLI::Interact::Transport::Loopback(3pm)

Net::CLI::Interact::Transport::Loopback3pm

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

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From libnet-cli-interact-perl 2.400002-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.