Add exec command plugin
This commit is contained in:
1
exec_command/__init__.py
Normal file
1
exec_command/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from exec_command import ExecCommandPlugin
|
||||
23
exec_command/exec_command.py
Normal file
23
exec_command/exec_command.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from plugins import GajimPlugin
|
||||
from plugins.helpers import log_calls
|
||||
|
||||
from common import gajim
|
||||
from command_system.implementation.execute import *
|
||||
|
||||
class ExecCommandPlugin(GajimPlugin):
|
||||
|
||||
@log_calls('ExecCommandPlugin')
|
||||
def init(self):
|
||||
self.description = _('Add "show"("sh") command to command system. '
|
||||
'Execute expression inside a shell, send output.')
|
||||
self.config_dialog = None
|
||||
|
||||
@log_calls('ExecCommandPlugin')
|
||||
def activate(self):
|
||||
Show.enable()
|
||||
|
||||
@log_calls('ExecCommandPlugin')
|
||||
def deactivate(self):
|
||||
Show.disable()
|
||||
8
exec_command/manifest.ini
Normal file
8
exec_command/manifest.ini
Normal file
@@ -0,0 +1,8 @@
|
||||
[info]
|
||||
name: Exec Command
|
||||
short_name: exec_command
|
||||
version: 0.1
|
||||
description: Add "show"("sh") command to command system. Execute expression inside a shell, send output.
|
||||
authors = Denis Fomin <fominde@gmail.com>
|
||||
homepage = http://trac-plugins.gajim.org/wiki/
|
||||
|
||||
Reference in New Issue
Block a user