Name : perl-Term-Shell
| |
Version : 0.130.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.4
| Date : 2021-10-22 05:11:15
|
Group : Unspecified
| Source RPM : perl-Term-Shell-0.130.0-1.4.src.rpm
|
Size : 0.09 MB
| |
Packager : (none)
| |
Summary : Simple command-line shell framework
|
Description :
Term::Shell lets you write simple command-line shells. All the boring details like command-line parsing, terminal handling, and tab completion are handled for you.
The base class comes with two commands pre-defined: exit and help.
To write a shell with an \'exec\' command, do something like this:
package MyShell; use base qw(Term::Shell); # or manually edit AATTMyShell::ISA.
sub run_exec { my ($o, $cmd, AATTargs) = AATT_; if ($cmd ne $0) { print \"I\'m sorry you\'re leaving us...\ \"; } exec $cmd, AATTargs; exit 1; }
When Term::Shell needs to handle the \'exec\' command, it will invoke this method. That\'s all there is to it! You write handlers, and Term::Shell handles the gory details.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_Tumbleweed/noarch |