# Path: vimswitch/Action.py
# class Action:
#     def __init__(self):
#         self.exitCode = 0
# 
#     def execute():
#         raise NotImplementedError
# 
# Path: vimswitch/Settings.py
# def getSettings(app):
#     return app.get('settings', createSettings(app))


from .Action import Action
from .Settings import getSettings


class ShowCurrentProfileAction(Action):
    def __init__(self, settings):
        Action.__init__(self)
        self.settings = settings

    def execute(self):
        if self.settings.currentProfile is None:
            profileName = 'None'
        else:
            profileName = self.settings.currentProfile.name

        message = 'Current profile: %s' % profileName

        print(message.strip())


def createShowCurrentProfileAction(app):

# Path: vimswitch/Action.py
# class Action:
#     def __init__(self):
#         self.exitCode = 0
# 
#     def execute():
#         raise NotImplementedError
# 
# Path: vimswitch/Settings.py
# def getSettings(app):
#     return app.get('settings', createSettings(app))


# Path: vimswitch/ShowCurrentProfileAction.py
from .Action import Action
from .Settings import getSettings



class ShowCurrentProfileAction(Action):
    def __init__(self, settings):
        Action.__init__(self)
        self.settings = settings

    def execute(self):
        if self.settings.currentProfile is None:
            profileName = 'None'
        else:
            profileName = self.settings.currentProfile.name

        message = 'Current profile: %s' % profileName

        print(message.strip())


def createShowCurrentProfileAction(app):

    settings = getSettings(app)