Add a plugin api.get_status method
This commit is contained in:
parent
0161f35f82
commit
bfbd61c423
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue