| 169 | | print "hello world" |
| | 169 | print "hello world" + line |
| | 170 | |
| | 171 | def help_helloworld(self): |
| | 172 | """routine providing help for helloworld command""" |
| | 173 | print "routine to print hello world and copy the rest of the line" |
| | 174 | |
| | 175 | def complete_helloworld(self, text, line, begidx, endidx): |
| | 176 | """routine defining the auto-completion |
| | 177 | auto-complete to get Olivier Mattelaer|Valentin Hirschi| Valentin Alwall | Oliver Mattelaer""" |
| | 178 | |
| | 179 | args = self.split_arg(line[0:begidx]) |
| | 180 | if len(args)= 0: |
| | 181 | return self.list_completion(text,['Olivier', 'Valentin', 'Oliver']) |
| | 182 | if len(args) ==1: |
| | 183 | if args[0].startswith('Oliv'): |
| | 184 | return self.list_completion(text,['Mattelaer']) |
| | 185 | elif args[0] == 'Valentin': |
| | 186 | return self.list_completion(text,['Alwall', 'Hirschi']) |
| | 187 | |
| | 188 | |
| | 189 | |
| | 190 | |
| | 191 | |
| | 192 | |
| | 193 | |