docstring
This commit is contained in:
parent
3556b3686c
commit
43cbe5bac9
@ -26,7 +26,8 @@ class MyCmd(cmd.Cmd):
|
||||
self.prompt = "yadyn> "
|
||||
|
||||
def do_list(self, l):
|
||||
"""list all or list <dynid>: List the details of all entries or of the entry specified by <dynid>"""
|
||||
"""list all or list <dynid>
|
||||
List the details of all entries or of the entry specified by <dynid>"""
|
||||
try:
|
||||
parts = l.split(' ')
|
||||
if len(parts) != 1:
|
||||
@ -43,7 +44,8 @@ class MyCmd(cmd.Cmd):
|
||||
self.stdout.write("Failure: %s\n" % str(e.msg))
|
||||
|
||||
def do_reset(self, l):
|
||||
"""reset all or reset <dynid>: Reset the address details of all or of the entry specified by <dynid>."""
|
||||
"""reset all or reset <dynid>
|
||||
Reset the address details of all or of the entry specified by <dynid>."""
|
||||
try:
|
||||
parts = l.split(' ')
|
||||
if len(parts) != 1:
|
||||
@ -67,7 +69,8 @@ class MyCmd(cmd.Cmd):
|
||||
self.stdout.write("Failure: %s\n" % str(e.msg))
|
||||
|
||||
def do_add(self, l):
|
||||
"""add <dynid> <name> <zone> <shared secret>: dynid is the key of the entry, name is the left-most part of the hostname to be set, zone is the domain part of the hostname to be set, shared secret is the password."""
|
||||
"""add <dynid> <name> <zone> <shared secret>
|
||||
dynid is the key of the entry, name is the left-most part of the hostname to be set, zone is the domain part of the hostname to be set, shared secret is the password."""
|
||||
try:
|
||||
parts = l.split(' ')
|
||||
if len(parts) != 4:
|
||||
@ -85,7 +88,8 @@ class MyCmd(cmd.Cmd):
|
||||
self.stdout.write("Failure: %s\n" % str(e.msg))
|
||||
|
||||
def do_edit(self, l):
|
||||
"""edit <dynid> <key> <value>: Change the name or the shared secret of the entry."""
|
||||
"""edit <dynid> <key> <value>
|
||||
Change the name or the shared secret of the entry."""
|
||||
try:
|
||||
parts = l.split(' ')
|
||||
if len(parts) != 3:
|
||||
@ -104,7 +108,8 @@ class MyCmd(cmd.Cmd):
|
||||
self.stdout.write("Failure: %s\n" % str(e.msg))
|
||||
|
||||
def do_delete(self, l):
|
||||
"""delete <dynid>: delete the entry specified by dynid"""
|
||||
"""delete <dynid>
|
||||
delete the entry specified by dynid"""
|
||||
try:
|
||||
parts = l.split(' ')
|
||||
if len(parts) != 1:
|
||||
@ -133,7 +138,8 @@ class MyCmd(cmd.Cmd):
|
||||
|
||||
|
||||
def do_quit(self, l):
|
||||
"""quit: Quit the shell"""
|
||||
"""quit
|
||||
Quit the shell"""
|
||||
self.stdout.write("Bye\n")
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user