Add a plugin api.get_status method

This commit is contained in:
mathieui 2016-03-08 23:02:14 +01:00
parent 0161f35f82
commit bfbd61c423

View file

@ -199,6 +199,14 @@ class PluginAPI(object):
"""
return self.core.current_tab()
def get_status(self, _):
"""
Get the current user global status.
:returns Status: The current status.
"""
return self.core.get_status()
def run_command(self, _, *args, **kwargs):
"""
Run a command from the current tab.