fix
This commit is contained in:
parent
cae5a1cc8f
commit
c4048142f2
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user