We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3038b76 commit fe2d95cCopy full SHA for fe2d95c
1 file changed
cmd2/cmd2.py
@@ -1627,8 +1627,16 @@ def _reset_completion_defaults(self) -> None:
1627
self.matches_delimited = False
1628
self.matches_sorted = False
1629
1630
- def _bottom_toolbar(self) -> Any:
1631
- """Get the bottom toolbar content."""
+ def _bottom_toolbar(self) -> list[str | tuple[str, str]] | None:
+ """Get the bottom toolbar content.
1632
+
1633
+ If self.include_bottom_toolbar is False, returns None.
1634
1635
+ Otherwise returns tokens for prompt-toolkit to populate in the bottom toolbar.
1636
1637
+ NOTE: This content can extend over multiple lines. However we would recommend
1638
+ keeping it to a single line or two lines maximum.
1639
+ """
1640
if self.include_bottom_toolbar:
1641
import datetime
1642
import shutil
0 commit comments