(historyConfig = { __proto__: null }, cb)
| 968 | self.displayPrompt(); |
| 969 | } |
| 970 | setupHistory(historyConfig = { __proto__: null }, cb) { |
| 971 | // TODO(puskin94): necessary because historyConfig can be a string for backwards compatibility |
| 972 | const options = typeof historyConfig === 'string' ? |
| 973 | { filePath: historyConfig } : |
| 974 | historyConfig; |
| 975 | |
| 976 | if (typeof cb === 'function') { |
| 977 | options.onHistoryFileLoaded = cb; |
| 978 | } |
| 979 | |
| 980 | this.setupHistoryManager(options); |
| 981 | } |
| 982 | clearBufferedCommand() { |
| 983 | this[kBufferedCommandSymbol] = ''; |
| 984 | } |
no test coverage detected