App-pepper
view release on metacpan or search on metacpan
- `--exec=COMMAND` - specify a command to execute. If not provided, pepper goes into interactive mode.
- `--nossl` - disable TLS and connect over plaintext.
- `--insecure` - disable TLS certificate checks.
- `--lang=LANG` - set the language when logging in.
- `--debug` - debug mode, makes `Net::EPP::Simple` verbose.
# USAGE MODES
Pepper supports two usage modes:
- 1. **Interactive mode:** this is the default mode. Pepper will provide a command prompt (with history and line editing capabilities) allowing you to input commands manually.
- 2. **Script mode:** if Pepper's `STDIN` is fed a stream of text (ie, it's not attached to a terminal) then commands will be read from `STDIN` and executed sequentially. Pepper will exit once EOF is reached.
# SYNTAX
Once running in interactive mode, Pepper provides a simple command-line interface. The available commands are listed below.
## Getting Help
Use `help COMMAND` at any time to get information about that command. Where a command supports different object types (ie domain, host, contact), use `help command-type`, ie `help create-domain`.
lib/App/pepper.pm view on Meta::CPAN
'key' => \&handle_key,
'restore' => \&handle_restore,
'update' => \&handle_update,
};
our $term;
$term = Term::ReadLine->new('pepper') if (-t STDIN && -t STDOUT);
my $outfh = ($term ? \*STDOUT : \*STDERR);
my $prompt = 'pepper> ';
my $histfile = $ENV{'HOME'}.'/.pepper_history';
my $xml = XML::LibXML->new;
if ($term) {
$term->ReadHistory($histfile) if ('Term::ReadLine::Gnu' eq $term->ReadLine);
note('Welcome to pepper!');
lib/App/pepper.pm view on Meta::CPAN
} else {
note("Entering batch mode");
}
#
# main loop
#
my $last;
while (1) {
$prompt = sprintf('pepper (%s@%s)> ', $epp->{'user'}, $epp->{'host'}) if ($epp->authenticated);
my $command;
if ($term) {
$command = $term->readline($prompt);
} else {
$command = <STDIN>;
chomp($command);
# remove any trailing comment
$command =~ s/\#.*//g;
}
if (!defined($command)) {
lib/App/pepper.pm view on Meta::CPAN
=item * C<--debug> - debug mode, makes C<Net::EPP::Simple> verbose.
=back
=head1 USAGE MODES
Pepper supports two usage modes:
=over
=item 1. B<Interactive mode:> this is the default mode. Pepper will provide a command prompt (with history and line editing capabilities) allowing you to input commands manually.
=item 2. B<Script mode:> if Pepper's C<STDIN> is fed a stream of text (ie, it's not attached to a terminal) then commands will be read from C<STDIN> and executed sequentially. Pepper will exit once EOF is reached.
=back
=head1 SYNTAX
Once running in interactive mode, Pepper provides a simple command-line interface. The available commands are listed below.
=head2 Getting Help
( run in 0.812 second using v1.01-cache-2.11-cpan-6aa56a78535 )