libepp_nicbr
Functions
shepp.cpp File Reference

EPP command-line shell client. More...

#include <cstdio>
#include <csignal>
#include <unistd.h>
#include <readline/readline.h>
#include <readline/history.h>
#include "DomainFunctions.H"
#include "ContactFunctions.H"
#include "PollFunctions.H"
#include "DefRegFunctions.H"

Functions

void welcome_message ()
 Prints info when program starts.
 
void init_readline ()
 Calls command-set init function and customize readline if necessary.
 
int execute (vector< string > &args)
 Run a command line. More...
 
int execute (char *line)
 Run a command line. More...
 
int usage ()
 prints usage instructions
 
int main (int argc, char **argv)
 main
 

Detailed Description

EPP command-line shell client.

Function Documentation

int execute ( vector< string > &  args)

Run a command line.

Parameters
argscommand line to be run
Returns
zero on success, non-zero on failure

References find_command(), and SheppCommand::function.

Referenced by execute(), and main().

int execute ( char *  line)

Run a command line.

Parameters
linecommand line to be run
Returns
zero on success, non-zero on failure

References execute(), find_command(), SheppCommand::function, and SheppStrUtil::parse_line().