Query: prophet::cli
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Prophet::CLI(3pm) User Contributed Perl Documentation Prophet::CLI(3pm) _record_cmd handles the subcommand for a particular type dispatcher_class -> Class Returns class name of the dispatcher used to dispatch command lines. By default app_class::CLI::Dispatcher is used if it can be loaded otherwise Prophet::CLI::Dispatcher. Override using: has '+dispatcher_class' => ( default => 'MyApp::Dispatcher' ); run_one_command Runs a command specified by commandline arguments given in an ARGV-like array of argumnents and key value pairs . To use in a commandline front-end, create a Prophet::CLI object and pass in your main app class as app_class, then run this routine. Example: my $cli = Prophet::CLI->new({ app_class => 'App::SD' }); $cli->run_one_command(@ARGV); get_script_name Return the name of the script that was run. This is the empty string if we're in a shell, otherwise the script name concatenated with a space character. This is so you can just use this for e.g. printing usage messages or help docs that might be run from either a shell or the command line. perl v5.10.1 2009-12-22 Prophet::CLI(3pm)
Related Man Pages |
---|
app::cli::command5.18(3) - mojave |
app::cli::command(3pm) - debian |
prophet::clicontext(3pm) - debian |
prophet::change(3pm) - debian |
prophet::config(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
Detecting unused variables... |
A (ksh) Library For and From UNIX.com |
New UNIX and Linux History Sections |