예제 #1
0
파일: ash.py 프로젝트: ghost2109/ash
 def print_topics(self, header, cmds, cmdlen, maxcol):
     """Hide functions by putting them in self.__hiden_methods"""
     if header is not None:
         Cmd.print_topics(self, header, cmds, cmdlen, maxcol)
예제 #2
0
 def print_topics(self, header, cmds, cmdlen, maxcol):
     '''Transform underscores to dashes when we print the command names.'''
     if isinstance(cmds, list):
         for i in range(len(cmds)):
             cmds[i] = cmds[i].replace('_', '-')
     Cmd.print_topics(self, header, cmds, cmdlen, maxcol)
예제 #3
0
 def print_topics(self, header, cmds, cmdlen, maxcol):
     if header is not None:
         Cmd.print_topics(self, header, cmds, cmdlen, maxcol)
예제 #4
0
 def print_topics(self, header, cmds, cmdlen, maxcol):
     nix = 'EOF', 'b', 'c', 's', 'r', 't'
     if header is not None:
         Cmd.print_topics(self, header,
                          [cmd for cmd in cmds if cmd not in nix], cmdlen,
                          maxcol)