diff options
author | mathieui <mathieui@mathieui.net> | 2016-03-08 23:02:14 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-03-08 23:02:14 +0100 |
commit | bfbd61c42397dcf70c11c19eb8948909ced9ecfd (patch) | |
tree | f17bba222c569e40cca6aae76b81356aa8f55e2f | |
parent | 0161f35f82337f56a8d01cd5dc7d6ea530ad43d9 (diff) | |
download | poezio-bfbd61c42397dcf70c11c19eb8948909ced9ecfd.tar.gz poezio-bfbd61c42397dcf70c11c19eb8948909ced9ecfd.tar.bz2 poezio-bfbd61c42397dcf70c11c19eb8948909ced9ecfd.tar.xz poezio-bfbd61c42397dcf70c11c19eb8948909ced9ecfd.zip |
Add a plugin api.get_status method
-rw-r--r-- | src/plugin.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugin.py b/src/plugin.py index eca6baf2..2d8275ed 100644 --- a/src/plugin.py +++ b/src/plugin.py @@ -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. |