Find the history file for the given profile name. This is overridden by the HistoryManager subclass, to use the shell's active profile. Parameters ---------- profile : str The name of a profile which has a history file.
(self, profile: str = "default")
| 306 | self.init_db() |
| 307 | |
| 308 | def _get_hist_file_name(self, profile: str = "default") -> Path: |
| 309 | """Find the history file for the given profile name. |
| 310 | |
| 311 | This is overridden by the HistoryManager subclass, to use the shell's |
| 312 | active profile. |
| 313 | |
| 314 | Parameters |
| 315 | ---------- |
| 316 | profile : str |
| 317 | The name of a profile which has a history file. |
| 318 | """ |
| 319 | return Path(locate_profile(profile)) / "history.sqlite" |
| 320 | |
| 321 | @catch_corrupt_db |
| 322 | def init_db(self) -> None: |
no test coverage detected