fix
This commit is contained in:
@ -13,13 +13,14 @@ class MyCmd(cmd.Cmd):
|
|||||||
def __init__(self, i, o):
|
def __init__(self, i, o):
|
||||||
cmd.Cmd.__init__(self, completekey=None, stdin=i, stdout=o)
|
cmd.Cmd.__init__(self, completekey=None, stdin=i, stdout=o)
|
||||||
cmd.Cmd.use_rawinput = False
|
cmd.Cmd.use_rawinput = False
|
||||||
self.intro = "yadyn commandline interface\n"
|
self.intro = "Hello at the yadyn cli\n"
|
||||||
self.prompt = "yadyn> "
|
self.prompt = "yadyn> "
|
||||||
|
|
||||||
def do_hello(self, l):
|
def do_hello(self, l):
|
||||||
self.stdout.write("DO: %s\n" % l)
|
self.stdout.write("DO: %s\n" % l)
|
||||||
|
|
||||||
def do_quit(self, l):
|
def do_quit(self, l):
|
||||||
|
self.stdout.write("Bye\n")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user