display the history from the history files
(self)
| 106 | self.history.append(cmd) |
| 107 | |
| 108 | def do_display_history(self): |
| 109 | """ |
| 110 | display the history from the history files |
| 111 | """ |
| 112 | for i, item in enumerate(self.history, start=1): |
| 113 | if len(list(str(i))) == 2: |
| 114 | spacer1, spacer2 = " ", " " |
| 115 | elif len(list(str(i))) == 3: |
| 116 | spacer1, spacer2 = " ", " " |
| 117 | else: |
| 118 | spacer1, spacer2 = " ", " " |
| 119 | print("{}{}{}{}".format(spacer1, i, spacer2, item)) |
| 120 | |
| 121 | def get_choice(self): |
| 122 | """ |
no outgoing calls
no test coverage detected