NAME
App::Maisha::Shell - A command line social micro-blog networking tool.
SYNOPSIS
use App::Maisha::Shell;
my $shell = App::Maisha::Shell->new;
DESCRIPTION
This distribution provides the ability to micro-blog via social networking websites and services, such as Identica and Twitter.
METHODS
Constructor
new
Configuration Methods
context
Used internally to reference the current shell for command handlers.
limit
Used by timeline commands to limit the number of messages displayed. The default setting will display the last 20 messages.
order
Used by timeline commands to order the messages displayed. The default is to display messages in descending order, with the most recent first and the oldest last.
To reverse this order, set the 'order' as 'ascending' (or 'asc') in your configuration file. (case insensitive).
networks
Sets the networks list that will appear above the command line.
prompt_str
Sets the prompt string that will appear on the command line.
tag_str
Sets the text that will appear at the end of your message.
In order to suppress the tag string set the 'tag' option to '.' in your configuration file.
services
Provides the order of services available, the first is always the primary service.
pager
Enables the use of a pager when viewing timelines. Defaults to true if not specified.
format
When printing a list of status messages, the default format of printing the username followed by the status message is not always suitable for everyone. As such you can define your own formatting.
The default format is "[%U] %M", with the available formatting patterns defined as:
%U - username or screen name %M - status message %T - timestamp %N - network
chars
As Maisha is run from the command line, it is most likely being run within a terminal window. Unfortunately there isn't currently a detection method for knowing the exact screen width being used. As such you can specify a width for the wrapper to use to ensure the messages are correctly line wrapped. The default setting is 80.
Run Methods
The run methods are handlers to run the specific command requested.
Help Methods
The help methods are handlers to provide additional information about the named command when the 'help' command is used, with the name of a command as an argument.
Summary Methods
When the 'help' command is requested, with no additonal arguments, a summary of the available commands is display, with the text from each specific command summary method handler.
Completion Methods
For some commands completion methods are available to help complete the command request. for example with the 'use' command, pressing <TAB> will attempt to complete the name of the Network plugin name for you.
Connect Methods
The connect methods provide the handlers to connect to a service. This is performed automatically on startup for all the services provided in your configuration file.
connect
run_connect =item * help_connect =item * smry_connect
Disconnect Methods
The disconnect methods provide the handlers to disconnect from a service.
run_disconnect =item * help_disconnect =item * smry_disconnect
Use Methods
The use methods provide the handlers change the primary service. The primary service is used by the main messaging commands. All available services are used when 'update' or 'say' are used.
run_use =item * help_use =item * smry_use =item * comp_use
Followers Methods
The followers methods provide the handlers for the 'followers' command.
run_followers =item * help_followers =item * smry_followers
Follow Methods
The follow methods provide the handlers for the 'follow' command.
run_follow =item * help_follow =item * smry_follow
Unfollow Methods
The unfollow methods provide the handlers for the 'unfollow' command.
run_unfollow =item * help_unfollow =item * smry_unfollow
User Methods
The user methods provide the handlers display the profile of a named user.
run_user =item * help_user =item * smry_user =item * comp_user
User Timeline Methods
The user timeline methods provide the handlers for the 'user_timeline' command. Note that the 'ut' is an alias to 'user_timeline'.
run_user_timeline =item * help_user_timeline =item * smry_user_timeline =item * comp_user_timeline
run_ut =item * help_ut =item * smry_ut =item * comp_ut
Friends Methods
The friends methods provide the handlers for the 'friends' command.
run_friends =item * help_friends =item * smry_friends
Friends Timeline Methods
The friends timeline methods provide the handlers for the 'friends_timeline' command. Note that the 'ft' is an alias to 'friends_timeline'.
run_friends_timeline =item * help_friends_timeline =item * smry_friends_timeline
run_ft =item * help_ft =item * smry_ft
Public Timeline Methods
The public timeline methods provide the handlers for the 'public_timeline' command. Note that the 'pt' is an alias to 'public_timeline'.
run_public_timeline =item * help_public_timeline =item * smry_public_timeline
run_pt =item * help_pt =item * smry_pt
Update Methods
The update methods provide the handlers for the 'update' command. Note that 'say' is an alias for 'update'.
run_update =item * help_update =item * smry_update =item * comp_update
run_say =item * help_say =item * smry_say =item * comp_say
Reply Methods
The reply methods provide the handlers for the 'replies' command. Note that 're' is an aliases for 'replies'
run_replies =item * help_replies =item * smry_replies
run_re =item * help_re =item * smry_re
Direct Message Methods
The direct message methods provide the handlers for the 'direct_message' command. Note that 'dm' is an aliases for 'direct_message'.
The direct_message command has to optional parameters:
maisha> dm [from|to] [limit]
maisha> dm from
maisha> dm to 10
maisha> dm 5
maisha> dm
The first above is the usage, with the keywords 'from' and 'to' both being optional. If neither is specified, 'to' is assumed. In addition a limit for the number of message can be provided. If no limit is given, your configured default, or the system default (20) is used.
run_direct_messages =item * help_direct_messages =item * smry_direct_messages
run_dm =item * help_dm =item * smry_dm
Send Message Methods
The send message methods provide the handlers for the 'send_message' command. Note that both 'send' and 'sm' are aliases to 'send_message'
run_send_message =item * help_send_message =item * smry_send_message =item * comp_send_message
run_send =item * help_send =item * smry_send =item * comp_send
run_sm =item * help_sm =item * smry_sm =item * comp_sm
About Methods
The quit methods provide the handlers for the 'about' command.
run_about =item * help_about =item * smry_about
Version Methods
The quit methods provide the handlers for the 'version' command.
run_version =item * help_version =item * smry_version
Quit Methods
The quit methods provide the handlers for the 'quit' command. Note that both 'quit' and 'q' are aliases to 'exit'
run_quit =item * help_quit =item * smry_quit
run_q =item * help_q =item * smry_q
Post Command Methods
Used to display the current networks list above the command line.
postcmd
SEE ALSO
For further information regarding the commands and configuration, please see the 'maisha' script included with this distribution.
WEBSITES
Main Site: http://maisha.grango.org =item * Git Repo: http://github.com/barbie/maisha/tree/master =item * RT Queue: "/rt.cpan.org/Public/Dist/Display.html?Name=App-Maisha" in RT: http:
AUTHOR
Copyright (c) 2009-2010 Barbie <barbie@cpan.org> for Grango.org.
LICENSE
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html