# AdminTaskMethods.py
# List the names of all the methods in AdminTask

comandCounter = 0
raw = AdminTask.help("-commandGroups")
groupList = raw.splitlines()
#remove the first two lines.  They are just text labels
del groupList[0:2]
for x in groupList:
  y = x.split()
  if len(y) > 1:
    print x
    try:
      raw = AdminTask.help(y[0])
      groupList = raw.splitlines()
#      innerCounter = 0
      for x in groupList:
#        if innercounter > 4:
#          commandCounter = commandCounter + 1
#        innerCounter = innerCounter + 1
        print x
    except:
      print "No help available for",y[0],"command group"
#print "There are",str(commandCounter),"AdminTask commands so far"
print "\nThe following commands are not part of any command group"
raw = AdminTask.help("-commands")
groupList = raw.splitlines()
#innerCounter = 0
for x in groupList:
#  if innercounter > 4:
#    commandCounter = commandCounter + 1
#  innerCounter = innerCounter + 1
  print x
#print "There are",str(commandCounter),"AdminTask commands"
