Web::MREST::CLI - CLI components for Web::MEST-based applications
Version 0.283
Top-level module of the Web::MREST::CLI distribution. Exports some "generalized" functions that are used internally and might also be useful for writing CLI clients in general.
Takes PARAMHASH containing possible parameters distro, sitedir, and debug_mode. Initializes CLI client and returns a status object.
distro
sitedir
debug_mode
The distro string should use hyphens instead of double-colons, i.e. Foo-Bar instead of Foo::Bar.
Foo-Bar
Foo::Bar
Given a filename (path) which might be relative or absolute, return an absolute version. If the path was relative, it will be anchored to the home directory of the user we are running as.
Initialize the LWP::UserAgent singleton object.
Return the cookie_jar associated with our user agent.
Send a request to the server, get the response, convert it from JSON, and return it to caller. Die on unexpected errors.
To install Web::MREST::CLI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::MREST::CLI
CPAN shell
perl -MCPAN -e shell install Web::MREST::CLI
For more information on module installation, please visit the detailed CPAN module installation guide.