This commit is contained in:
who 2007-11-12 14:57:46 +01:00
parent cae5a1cc8f
commit c4048142f2

View File

@ -13,13 +13,14 @@ class MyCmd(cmd.Cmd):
def __init__(self, i, o):
cmd.Cmd.__init__(self, completekey=None, stdin=i, stdout=o)
cmd.Cmd.use_rawinput = False
self.intro = "yadyn commandline interface\n"
self.intro = "Hello at the yadyn cli\n"
self.prompt = "yadyn> "
def do_hello(self, l):
self.stdout.write("DO: %s\n" % l)
def do_quit(self, l):
self.stdout.write("Bye\n")
return True