ocarina/src/core/cli.py

39 lines
636 B
Python

#! /usr/bin/python
__author__="bjschuma"
__date__ ="$Dec 18, 2009 12:08:57 AM$"
global name, app, type, path, opt
name = "cli"
app = "scion"
type = "core"
path = ""
opt = []
from bt.message import *
import cline.loop
import cline.message
import settings
# Called every time the plugin is enabled
def open():
write("Starting CLI", True)
# Tell settings to run this loop
settings.set("loop",cline.loop.loop)
settings.set("loopquit",cline.loop.quit)
# Called every time the plugin is stopped
def close():
write("CLI has been stopped", True)
# Called when the plugin needs to perform some action
def run(args=None):
pass