Skip to content
Snippets Groups Projects
Commit 84d00d48 authored by Dicson's avatar Dicson
Browse files

Add exec command plugin

parent 783f0718
No related branches found
No related tags found
No related merge requests found
from exec_command import ExecCommandPlugin
# -*- 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()
[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/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment