#!/usr/bin/env python

"""Shell Initialization"""
import bcolors
import pathlib
import epispot

try:
    import fire
except:
    print("Please install Fire to use epispot's CLI")
    print('>>> pip install fire')

 
class Shell(object):
    """The base shell for epispot containing linking commands for Fire"""

    def __init__(self):
        """Initialize the epispot shell"""
        self.path = pathlib.Path(__file__).parent.absolute()
        self.version = 'shell-v0.1.0-alpha epispot-{0}'.format(epispot.__version__)

    def about(self):
        """Basic information about the epispot CLI""" 

        print(bcolors.CGREEN2+'Epispot was invoked successfully via the epispot CLI'+bcolors.CEND)
        print('Path: {0}'.format(self.path))
        print('Version: {0}'.format(self.version))


if __name__ == '__main__':
    fire.Fire(Shell())
