GijsTimmers / kotnetcli

An easy automated way to log in on Kotnet.
GNU General Public License v3.0
5 stars 4 forks source link

stdout communicator #82

Open GijsTimmers opened 9 years ago

GijsTimmers commented 9 years ago

Maybe some people want to use kotnetcli in quirky ways. We can help those people by providing a stdout communicator for kotnetcli.

cowsay

 _____________________
< Gegevens ingevoerd. >
 ---------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

figlet

 ____                      _                 _      ___   ___ _  __
|  _ \  _____      ___ __ | | ___   __ _  __| |_   / _ \ ( _ |_)/ /
| | | |/ _ \ \ /\ / / '_ \| |/ _ \ / _` |/ _` (_) | (_) |/ _ \ / / 
| |_| | (_) \ V  V /| | | | | (_) | (_| | (_| |_   \__, | (_) / /_ 
|____/ \___/ \_/\_/ |_| |_|_|\___/ \__,_|\__,_(_)    /_/ \___/_/(_)

 _   _       _                 _     _  ___   ___ _  __  
| | | |_ __ | | ___   __ _  __| |_  / |/ _ \ / _ (_)/ /_ 
| | | | '_ \| |/ _ \ / _` |/ _` (_) | | | | | | | |/ /(_)
| |_| | |_) | | (_) | (_| | (_| |_  | | |_| | |_| / /_ _ 
 \___/| .__/|_|\___/ \__,_|\__,_(_) |_|\___/ \___/_/(_|_)
      |_|    
jovanbulck commented 8 years ago

It seems to me that what we really want here is an easy-to-parse and stable output format to allow easy scripting (as opposed to the PlainTextCommunicator).

Inspired by git internals terminology, I therefore propose to offer a PlumbingCommunicator with a stable dictionary-like output format.

Maybe a successful login output stream could look like:

status=connection_test
status=open_connection
status=waiting_reply
status=succes
upload=value
download=value