8 |
|
|
9 |
my $sh = Term::Shelly->new(); |
my $sh = Term::Shelly->new(); |
10 |
|
|
11 |
|
my $debug = shift @ARGV; |
12 |
|
|
13 |
if (0) { |
if (0) { |
14 |
$sh->out( |
$sh->out( |
15 |
"This is a demo of Term::Shelly. It is designed to show you some of the |
"This is a demo of Term::Shelly. It is designed to show you some of the |
27 |
|
|
28 |
$sh->{"completion_function"} = \&completer; |
$sh->{"completion_function"} = \&completer; |
29 |
$sh->prompt("Foo> "); |
$sh->prompt("Foo> "); |
30 |
|
$sh->{debug} = $debug; |
31 |
|
|
32 |
$sh->out("Welcome!"); |
$sh->out("Welcome!"); |
33 |
|
|