Clustericious::Client::Command - Command line type processing for clients.
version 1.23
# in fooclient :
use Foo::Client; use Clustericious::Client::Command; Clustericious::Client::Command->run(Foo::Client->new, @ARGV);
Then
fooclient status fooclient --trace root status fooclient version fooclient foobject 31 fooclient foobject_search --color beige
This will try to take command line arguments and call the right client methods.
Calling fooclient bar baz is equivalent to Foo::Client->new()->bar("baz").
fooclient bar baz
Foo::Client->new()->bar("baz")
There are currently a few heuristics used when one of the arguments is a filename (i.e. is it a YAML file that should be parsed and send as a hashref, or a filename that should be PUT? Should STDIN be used?). These need to be formalized and documented.
Clustericious::Client::Command->run(Some::Clustericious::Client->new, @ARGV);
Original author: Brian Duggan
Current maintainer: Graham Ollis <plicease@cpan.org>
Contributors:
Curt Tilmes
This software is copyright (c) 2013 by NASA GSFC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Clustericious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Clustericious
CPAN shell
perl -MCPAN -e shell install Clustericious
For more information on module installation, please visit the detailed CPAN module installation guide.