# Path: lib/firefox.py
# class Mozrepl(object):
#     HOST = 'localhost'
#     PORT = 4242
#     def __init__(self, ip=HOST, port=PORT):
#     def __enter__(self):
#     def __exit__(self, type, value, traceback):
#     def cmd(self, command):
#     def get_text_result(self, command, sep=''):
#     def is_installed(cls):
# def open_url_in_curr_tab(url):
# def get_curr_tab_url():
# def open_new_empty_tab():
# def put_focus_on_tab(n):
# def open_url_in_new_tab(url):
# def reload_curr_tab():
# def get_curr_tab_html():
# def close_curr_tab():
# def get_number_of_tabs():
# def get_curr_tab_title():
# def get_tab_list():


from docopt import docopt
from lib import firefox as ff
  -a --all          List all tabs in a readable format.
  -u --url          Show URLs.
  -l --list         URL lister.
  -t --title        Show titles.
  -f --focus        Focus on selected tab, where ID is the tab index.
  --count           Number of tabs.
  --current         URL of the current tab.
  -c -k --close     Close (kill) selected tab, where ID is the tab index(es).
  -r --raw          List all tabs in raw format.
  -h --help         Show this screen.
  -V --version      Show version.
"""



__project__ = 'Firefox Tabs'
__version__ = '0.1'


INFO = """
A command line program for manipulating Firefox tabs.

Requirements:
* Firefox
* MozRepl add-on (https://addons.mozilla.org/en-US/firefox/addon/mozrepl/)
  - activate the add-on (under Tools -> MozRepl, "Start" and "Activate on startup")
"""


def option_raw():

# Path: lib/firefox.py
# class Mozrepl(object):
#     HOST = 'localhost'
#     PORT = 4242
#     def __init__(self, ip=HOST, port=PORT):
#     def __enter__(self):
#     def __exit__(self, type, value, traceback):
#     def cmd(self, command):
#     def get_text_result(self, command, sep=''):
#     def is_installed(cls):
# def open_url_in_curr_tab(url):
# def get_curr_tab_url():
# def open_new_empty_tab():
# def put_focus_on_tab(n):
# def open_url_in_new_tab(url):
# def reload_curr_tab():
# def get_curr_tab_html():
# def close_curr_tab():
# def get_number_of_tabs():
# def get_curr_tab_title():
# def get_tab_list():


# Path: fftabs.py
from docopt import docopt
from lib import firefox as ff

  -a --all          List all tabs in a readable format.
  -u --url          Show URLs.
  -l --list         URL lister.
  -t --title        Show titles.
  -f --focus        Focus on selected tab, where ID is the tab index.
  --count           Number of tabs.
  --current         URL of the current tab.
  -c -k --close     Close (kill) selected tab, where ID is the tab index(es).
  -r --raw          List all tabs in raw format.
  -h --help         Show this screen.
  -V --version      Show version.
"""



__project__ = 'Firefox Tabs'
__version__ = '0.1'


INFO = """
A command line program for manipulating Firefox tabs.

Requirements:
* Firefox
* MozRepl add-on (https://addons.mozilla.org/en-US/firefox/addon/mozrepl/)
  - activate the add-on (under Tools -> MozRepl, "Start" and "Activate on startup")
"""


def option_raw():

    for e in ff.get_tab_list():