Commit Graph

2 Commits

Author SHA1 Message Date
Jonathan Bernard
1565a04b3a Added color, better nailgun support, new argument processing model, base commands.
ConsoleColor
    Added to support for terminal colors by using ANSI escape codes.
    Basically cross-platform (as close as we're going to get with Java's API)

TwitterCLI
    Added colored output and configurable settings controlling it.
    Created a specific Nailgun entry-point. When using Nailgun the Twitter
      object is cached in the JVM so that it doesn't need to be recreated
      each time a call is made. This also means that settings changed from the
      command line persist until the Nailgun server is reset.
    Added functionality to wrap the status nicely to a set width (used for
      printing timelines).
    Arguments are not processed internally as a Queue, so each command/option
      is popped off the queue before it is processed.
    Added and updated base commands:
        help - not implemented, will be used to display online help about a
               command.
        post - Basic implementation added. It checks the length of the status,
               and asks for confirmation from the user before posting.
        reconfigure - If a Nailgun server is being used, it is useful to be
               able to reconfigure the client without restarting the nailgun
               server. This scraps the current instance cached by the ng
               server and creates a fresh instance.
        set  - Allows the user to set a configurable value on the command line.
               So far, only the following configurable values are available:
                 terminalWidth - integer, used for calculating text wrapping.
                 colored       - boolean, enables or disables colored output.
        show - not implemented, will be used to show various information
2010-11-06 16:37:32 -05:00
Jonathan Bernard
2ff8b02025 Basic timeline listing implementation complete. 2010-11-05 18:10:03 -05:00