MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / _create_default_theme

Function _create_default_theme

cmd2/rich_utils.py:355–362  ·  view source on GitHub ↗

Create a default theme for the application. This theme combines the default styles from cmd2, rich-argparse, and Rich.

()

Source from the content-addressed store, hash-verified

353
354
355def _create_default_theme() -> Theme:
356 """Create a default theme for the application.
357
358 This theme combines the default styles from cmd2, rich-argparse, and Rich.
359 """
360 app_styles = DEFAULT_CMD2_STYLES.copy()
361 app_styles.update(DEFAULT_ARGPARSE_STYLES)
362 return Theme(app_styles, inherit=True)
363
364
365class Cmd2BaseConsole(Console):

Callers 2

get_themeFunction · 0.85
set_themeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…