Permalink
Browse files

Updated docs.

  • Loading branch information...
jk0 committed Jun 27, 2012
1 parent 9bb0318 commit dd0b137275c7ff2d197a30b310d650a8e74d7ef9
Showing with 7 additions and 79 deletions.
  1. +7 −31 docs/plugins.rst
  2. +0 −48 pyhole/plugins/taskwarrior.py
View
@@ -1,5 +1,5 @@
..
- Copyright 2011 Josh Kearney
+ Copyright 2011-2012 Josh Kearney
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -24,22 +24,6 @@ Pyhole Plugins
:undoc-members:
:show-inheritance:
-:mod:`pyhole.plugins.dice`
---------------------------
-.. automodule:: pyhole.plugins.dice
- :noindex:
- :members:
- :undoc-members:
- :show-inheritance:
-
-:mod:`pyhole.plugins.entertainment`
------------------------------------
-.. automodule:: pyhole.plugins.entertainment
- :noindex:
- :members:
- :undoc-members:
- :show-inheritance:
-
:mod:`pyhole.plugins.kernel`
----------------------------
.. automodule:: pyhole.plugins.kernel
@@ -56,14 +40,6 @@ Pyhole Plugins
:undoc-members:
:show-inheritance:
-:mod:`pyhole.plugins.news`
---------------------------
-.. automodule:: pyhole.plugins.news
- :noindex:
- :members:
- :undoc-members:
- :show-inheritance:
-
:mod:`pyhole.plugins.redmine`
-----------------------------
.. automodule:: pyhole.plugins.redmine
@@ -80,17 +56,17 @@ Pyhole Plugins
:undoc-members:
:show-inheritance:
-:mod:`pyhole.plugins.taskwarrior`
----------------------------------
-.. automodule:: pyhole.plugins.taskwarrior
+:mod:`pyhole.plugins.urls`
+--------------------------
+.. automodule:: pyhole.plugins.urls
:noindex:
:members:
:undoc-members:
:show-inheritance:
-:mod:`pyhole.plugins.urls`
---------------------------
-.. automodule:: pyhole.plugins.urls
+:mod:`pyhole.plugins.versionone`
+--------------------------------
+.. automodule:: pyhole.plugins.versionone
:noindex:
:members:
:undoc-members:
@@ -1,48 +0,0 @@
-# Copyright 2011 Paul Voccio
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Pyhole Taskwarrior Plugin"""
-
-import subprocess
-
-from pyhole import plugin
-
-
-class Taskwarrior(plugin.Plugin):
- """Provide access to Taskwarrior"""
-
- @plugin.hook_add_command("task")
- def task(self, params=None, **kwargs):
- """List and add tasks (ex: .task <list|add|done>)"""
- if params:
- verb = params.split(" ", 1)[0]
- source = self.irc.source.split("!")[0]
- params = "%s project:%s" % (params, source)
-
- for command in ["list", "add", "done"]:
- if verb == command:
- self._run(params)
- else:
- self.irc.reply(self.task.__doc__)
-
- def _run(self, params):
- """Execute the Taskwarrior binary"""
- try:
- p = subprocess.Popen(["task"] + params.split(" "),
- stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- result, error = p.communicate()
-
- self.irc.reply(result)
- except Exception:
- self.irc.reply("Unable to load Taskwarrior")

0 comments on commit dd0b137

Please sign in to comment.